Setting prompt in ipython
Cecil Westerhof
Cecil at decebal.nl
Sun May 24 06:52:44 EDT 2015
In bash I have:
\[\e[1m\][\D{%a, %d %b %T} \u@\h:\w]\n$ \[\e[0m\]
which gives me the following prompt:
[Sun, 24 May 12:23:45 cecil at Equus:~]
$
I want to have a similar prompt in ipython. At the moment I have come
to:
%config PromptManager.in_template = r'[\T \u@\h:\Y1]\n\#> '
which gives:
[12:51:32 cecil at Equus:startup]
14>
But how do I get weekday, day-number and short month into my prompt?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the Python-list
mailing list