On Wed, Feb 10, 2010 at 03:51:42PM +0200, Pablo Bitton wrote: >Hi, I was searching how to add the program exit code to ash's PROMPT > >the bash syntax is easy : PS1='blah $? ' export PS1="\\w [\$?] \\$ "