This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

More informative bash prompt


Well, whether this is useful might be a question of preference.

-- .profile --
# Make the prompt tell the last exit code among other things.
export PS1='\[\033]0;\w\007\033[32m\]\u@\
h \[\033[33m\w\033[0m\] \s (P)PID=($PPID)$$, s=$?\n$ '
--
DO append the two last lines above (i.e. ...\h... )

 s == exit status of last command/pipe/...
 Take it or leave it. ;-)

/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems - 59°16.37'N,
17°12.60'E
--END OF MESSAGE--


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]