mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Enable hiding default branch names other than 'master'
This commit is contained in:
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…
Reference in New Issue
Block a user