Enable hiding default branch names other than 'master'

pull/256/head
Xiphoseer 4 years ago
parent a2ad38aa05
commit 217e252168

@ -82,6 +82,10 @@ function __bobthefish_git_branch -S -d 'Get the current git branch (or commitish
and echo $branch_glyph
and return
[ "$theme_display_git_default_branch" != 'yes' -a "$ref" = "refs/heads/$theme_git_default_branch" ]
and echo $branch_glyph
and return
# truncate the middle of the branch name, but only if it's 25+ characters
set -l truncname $ref
[ "$theme_use_abbreviated_branch_name" = 'yes' ]

Loading…
Cancel
Save