diff --git a/bashrc-mine b/bashrc-mine index 5560f93..25a1425 100644 --- a/bashrc-mine +++ b/bashrc-mine @@ -35,5 +35,5 @@ alias vboxstart='vboxmanage startvm --type=headless' # Set git prompt NOTE if too slow, see .git-prompt.sh for an alternative solution [ -e ~/.git-prompt.sh ] && source ~/.git-prompt.sh -GITPS1='$(__git_ps1 " (%s)")' -PS1=${PS1:0:${#PS1}-4}$GITPS1' \$ ' +[ -e ~/.git-prompt.sh ] && GITPS1='$(__git_ps1 " (%s)")' +[ -e ~/.git-prompt.sh ] && PS1=${PS1:0:${#PS1}-4}$GITPS1' \$ '