[Nottingham] bash prompt

Martin Garton martin at wrasse.demon.co.uk
Thu Jun 10 14:24:19 BST 2004


Following on from Martin's excellent bash talk, here is the prompt I 
mentioned to one or two people that makes use of a couple of the things we 
discussed at the talk.

export PS1="$PS1 \`if [ \$? = 0 ]; then echo \:\); else echo \:\(; fi\`"

For those who I didn't mention it to, it should be easy to work out what 
it does, and even easier to try it.

Cheers,
Martin.





More information about the Nottingham mailing list