diff options
-rwxr-xr-x | git-prompt.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index a206eaa..2853909 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -422,7 +422,6 @@ parse_git_status() { vcs=git ########################################################## GIT STATUS - file_regex='\([^/ ]*\/\{0,1\}\).*' added_files=() modified_files=() untracked_files=() @@ -509,7 +508,7 @@ parse_git_status() { fi #### branch - branch=${branch/master/M} + branch=${branch/#master/M} # another method of above: # branch=$(git symbolic-ref -q HEAD || { echo -n "detached:" ; git name-rev --name-only HEAD 2>/dev/null; } ) |