aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-03-09 10:15:16 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 12:01:15 +0200
commitd3fc91ea2d5c99f4635a748332426165e5cdc4c5 (patch)
tree0c1f5494a9d53a35d5bc8e00e0b10adef44fa25e /.zshrc
parentb424b8f40c3b4f3b0d8ae6629f170f1431bb12e6 (diff)
Use HEAD instead of @ for compatability
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
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