Mercurial > repos > other > linux
changeset 70:3b6eae8d3801
Deal with spaces in current path when making $PS1
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 21 May 2017 19:48:38 +0100 |
parents | 78b4a74a5452 |
children | fed933b2b8f5 |
files | bashrc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bashrc Tue Apr 25 13:20:36 2017 +0100 +++ b/bashrc Sun May 21 19:48:38 2017 +0100 @@ -60,7 +60,7 @@ PROMPT_DIRTRIM=2 # Bold the command prompt and standardise on SUSE format # With colour! -export PS1='\[\033[01;38;5;34m\]\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[01;38;5;247m\]$(vcs_status)\[\033[39m\]>\[\033[00m\] ' +export PS1='\[\033[01;38;5;34m\]\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[01;38;5;247m\]$(vcs_status)\[\033[39m\]>\[\033[00m\] ' # Fix "less" highlighting export LESS_TERMCAP_so=$'\033[30;48;5;247m'