]> git.zndr.dk Git - dotfiles.git/commitdiff
Fix git bash prompt
authorJannik ZANDER <jannikz@gmail.com>
Mon, 2 May 2016 12:24:46 +0000 (14:24 +0200)
committerJannik Zander <jannikz@Janniks-MBP.opasia.dk>
Mon, 2 May 2016 19:35:08 +0000 (21:35 +0200)
.bash/prompt

index bbce6268c2e3927760ca6d55e5fc66b7f4c3c7f4..bca13df37c23b7aece6579b624b6ed14961027ec 100644 (file)
@@ -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