diff --git a/users/pbsds/home/profiles/bashrc.d/ps1.sh b/users/pbsds/home/profiles/bashrc.d/ps1.sh index 35d1a03..8a58030 100644 --- a/users/pbsds/home/profiles/bashrc.d/ps1.sh +++ b/users/pbsds/home/profiles/bashrc.d/ps1.sh @@ -3,6 +3,7 @@ ps1_parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' return $retcode } +# TODO: this somehow corrupts the cursor location ps1_retcode_color() { local retcode=$? [ $? -eq 0 ] \ @@ -10,4 +11,5 @@ ps1_retcode_color() { || echo -e '\e[33m' return $retcode } -export PS1='\[\033[01;32m\]\u@\h\[\033[01;37m\] \[\033[01;34m\]\W\[\033[33m\]$(ps1_parse_git_branch)$(ps1_retcode_color)\$\[\033[00m\] ' +# export PS1='\[\033[01;32m\]\u@\h\[\033[01;37m\] \[\033[01;34m\]\W\[\033[33m\]$(ps1_parse_git_branch)$(ps1_retcode_color)\$\[\033[00m\] ' +export PS1='\[\033[01;32m\]\u@\h\[\033[01;37m\] \[\033[01;34m\]\W\[\033[33m\]$(ps1_parse_git_branch)\[\033[01;32m\]\$\[\033[00m\] '