A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1641/ below:

Escape code for the current time in PromptManager · Issue #1641 · ipython/ipython · GitHub

One very handy escape code available within bash is \t as you get execution time for free. My current prompt for bash is

13:46:20 biot19-240-dhcp: $
13:46:22 biot19-240-dhcp:$ echo $PS1
[\033[1;32m]\t [\033[0m]\h:\w$

How difficult would it be to support a similar escape code within the PromptManager?

Thanks
Daniel


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4