From: Jannik ZANDER Date: Mon, 2 May 2016 12:24:46 +0000 (+0200) Subject: Fix git bash prompt X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=90a422914ad64c07562267be6120543a197560cb;p=dotfiles.git Fix git bash prompt --- diff --git a/.bash/prompt b/.bash/prompt index bbce626..bca13df 100644 --- a/.bash/prompt +++ b/.bash/prompt @@ -50,23 +50,22 @@ else fi; # Enabling any of these options will slow down the prompt -export GIT_PS1_SHOWDIRTYSTATE= -export GIT_PS1_SHOWSTASHSTATE= -export GIT_PS1_SHOWUNTRACKEDFILES= -export GIT_PS1_SHOWUPSTREAM= #"auto" +export GIT_PS1_SHOWDIRTYSTATE=1 +export GIT_PS1_SHOWSTASHSTATE=1 +export GIT_PS1_SHOWUNTRACKEDFILES=1 +export GIT_PS1_SHOWUPSTREAM=1 # Set git prompt # Set the terminal title to the current working directory. -PS1=''; -#PS1+='\[\033]0;\w\007\]'; +PS1='\[\033]0;\w\007\]'; PS1+='\[${bold}\]'; -#PS1+='\n'; # newline +PS1+='\r'; # newline PS1+='\[${userStyle}\]\u '; # username PS1+='\[${white}\]at '; PS1+='\[${hostStyle}\]\h '; # at host PS1+='\[${white}\]in '; PS1+='\[${green}\]\w '; # in working directory -PS1+='$(__git_ps1 "\[${white}\]on \[${violet}\]%s\[${blue}\]")'; # on branch +PS1+="$(__git_ps1 '\[${white}\]on \[${violet}\]%s\[${blue}\]')"; # on branch PS1+='\n'; # newline PS1+='\[${white}\]\$ '; # `$` PS1+='\[${reset}\]'; # reset color