bash: PS1 dont expand home
This commit is contained in:
parent
6035c01a09
commit
576e1adb63
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export GIT_PS1_SHOWUNTRACKEDFILES=1
|
|||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
export GIT_PS1_SHOWSTASHSTATE=1
|
||||
export GIT_PS1_SHOWCONFLICTSTATE="yes"
|
||||
export PS1="\n${BLUE}\u${GREEN}@${ORANGE}\$(cat /etc/hostname) \$(pwd | sed -E -e "s#/#${RED}/${RESET}${GREEN}#g")${YELLOW}\$(__git_ps1)${RESET}\n> "
|
||||
export PS1="\n${BLUE}\u${GREEN}@${ORANGE}\$(cat /etc/hostname) ${GREEN}\$(dirs +0 | sed -E -e "s#/#${RED}/${RESET}${GREEN}#g")${YELLOW}\$(__git_ps1)${RESET}\n> "
|
||||
# https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly
|
||||
# alle Farben sind mit \[<wert>\] escaped, sonst kann die shell die länge nicht richtig ausrechnen
|
||||
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
|
||||
|
|
Loading…
Reference in a new issue