Missing slash/

This commit is contained in:
Julien Palard 2018-09-14 16:07:42 +02:00
parent 26f72ad6f4
commit 07e2fa6716
1 changed files with 2 additions and 2 deletions

View File

@ -57,9 +57,9 @@ WHITE=$'\E[00m'
[ "$TERM" != 'linux' -a z"$TERM" != z'eterm-color' ] && TITLE="\[\033]0;\u@\H:\w\a\]" || TITLE=''
export PS1="$TITLE\[$USERNAME_COLOR\]\u\[$WHITE\]@\[$HOSTNAME_COLOR\]\H\[$WHITE\]"
if ! [ -f ~/.git-prompt.sh ]
if ! [ -f "/$USER/.git-prompt.sh" ]
then
wget -q -O "$USER/.git-prompt.sh" https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
wget -q -O "/$USER/.git-prompt.sh" https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
fi
export PS1="$PS1"'$(__git_ps1 " (%s)")\$ '