|
| From: | paul_spam |
| Subject: | Re: [Help-bash] Looking for something like "errexit" for interactive sessions |
| Date: | Wed, 28 Aug 2019 14:58:02 +0200 |
| User-agent: | Posteo Webmail |
Sorry,
should have been
PS1='\[\e[01;31m\]${?/#0/\[\e[33m\]0}\[\e[39m\]|\[\e[32m\]\u\[\e[39m\]:\[\e[34m\]\w\[\e[39m\]\$\[\e[0m\]'
of course.
Paul
On 28.08.2019 14:56, address@hidden wrote:
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] |