[Nottingham] bash prompt
Martin
martin at ml1.co.uk
Thu Jun 10 15:23:41 BST 2004
Martin Garton wrote:
> 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.
Very nice :) thanks.
Hint:
Try it with the commands true and false :(
Cheers,
Martin
--
----------------
Martin Lomas
martin at ml1.co.uk
----------------
More information about the Nottingham
mailing list