diff options
-rw-r--r-- | .bashrc | 2 | ||||
-rw-r--r-- | .zshrc | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -86,7 +86,7 @@ __precmd() fi # Get the branch name - local git_branch_name=$(git rev-parse --abbrev-ref @) + local git_branch_name=$(git rev-parse --abbrev-ref HEAD) if [[ "$git_branch_name" == "HEAD" ]] then @@ -104,7 +104,7 @@ function precmd() # {{{ fi # Get the branch name - GITBRANCH=$(git rev-parse --abbrev-ref @) + GITBRANCH=$(git rev-parse --abbrev-ref HEAD) if [ "$GITBRANCH" = "HEAD" ] then |