Mercurial > repos > other > linux
changeset 57:28317d15a4cf
Colourise prompt (PS1) based on Ubuntu default colours
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 19 Apr 2017 20:47:03 +0100 |
parents | 3c48c5671f1a |
children | 0829728189a2 |
files | bashrc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bashrc Tue Mar 28 11:15:48 2017 +0100 +++ b/bashrc Wed Apr 19 20:47:03 2017 +0100 @@ -39,7 +39,9 @@ export LS_OPTIONS="$LS_OPTIONS -p" # Bold the command prompt and standardise on SUSE format -export PS1='\[\033[01m\]\[$(ppwd)\]\u@\h\[\033[00m\]:\[\033[01m\]\w\[\033[00m\]> ' +#export PS1='\[\033[01m\]\[$(ppwd)\]\u@\h\[\033[00m\]:\[\033[01m\]\w\[\033[00m\]> ' +# With colour! +PS1='\[\033[01;38;5;34m\]\[$(ppwd)\]\u\[\033[01;38;5;28m\]@\[\033[01;38;5;34m\]\h\[\033[39m\]:\[\033[01;38;5;26m\]\w$(test $PWD != / && echo -n /)\[\033[39m\]>\[\033[00m\] ' # Fix "less" highlighting export LESS_TERMCAP_so=$'\033[30;47m'