Skip to content

Commit de80cff

Browse files
author
Timothy Harding
committed
Hide the branch per the configuration
1 parent bc47bcc commit de80cff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

functions/_tide_item_git.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ function _tide_item_git
22
if git branch --show-current 2>/dev/null | string shorten -"$tide_git_truncation_strategy"m$tide_git_truncation_length | read -l location
33
git rev-parse --git-dir --is-inside-git-dir | read -fL gdir in_gdir
44
set location $_tide_location_color$location
5+
test "$tide_git_hide_branch" = true && set -e location
56
else if test $pipestatus[1] != 0
67
return
78
else if git tag --points-at HEAD | string shorten -"$tide_git_truncation_strategy"m$tide_git_truncation_length | read location

0 commit comments

Comments
 (0)