diff options
-rw-r--r-- | zsh/.zshrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -60,7 +60,8 @@ $(yellow "└─╼") " function get_git_branch { if [[ -d .git ]]; then - branch="$(git rev-parse --abbrev-ref HEAD) " + branch="$(< .git/HEAD)" + branch="${branch##*/} " else branch="" fi |