Thanks a lot! works like a charm ;-)) On Wed, Feb 10, 2010 at 4:23 PM, Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> wrote: > 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 [\$?] \\$ " >