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@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@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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to