|
From: | paul_spam |
Subject: | Re: [Help-bash] Looking for something like "errexit" for interactive sessions |
Date: | Wed, 28 Aug 2019 14:56:26 +0200 |
User-agent: | Posteo Webmail |
Or, if you have a color fetish, wooledg:~$ cc=( "$(tput setaf 2)" "$(tput setaf 1)" ) norm=$(tput sgr0) wooledg:~$ PS1='[\[${cc[!!$?]}\]$?\[$norm\]] \h:\w\$ '
I use PS1=\[\e[01;31m\]${?/#0/\[\e[33m\]0}\[\e[39m\]|\[\e[32m\]\u\[\e[39m\]:\[\e[34m\]\w\[\e[39m\]\$\[\e[0m\] whicht might be a bit easier? Regards, Paul
[Prev in Thread] | Current Thread | [Next in Thread] |