From d3fc91ea2d5c99f4635a748332426165e5cdc4c5 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Tue, 9 Mar 2021 10:15:16 +0100 Subject: Use HEAD instead of @ for compatability --- .bashrc | 2 +- .zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 11d8757..54c0aa0 100644 --- a/.bashrc +++ b/.bashrc @@ -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 diff --git a/.zshrc b/.zshrc index 3ab08d5..aee4c54 100644 --- a/.zshrc +++ b/.zshrc @@ -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 -- cgit v1.1