diff options
author | Roger Gonzalez <rogergonzalez21@gmail.com> | 2019-12-29 14:58:33 -0300 |
---|---|---|
committer | Roger Gonzalez <rogergonzalez21@gmail.com> | 2019-12-29 14:58:33 -0300 |
commit | efb336a23b65a9a2d56889396b13c1757bdaf354 (patch) | |
tree | 234e40115f79a84c8a755df6fb932cc6797e36e1 /.config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish |
Initial commit
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish')
-rw-r--r-- | .config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish new file mode 100644 index 00000000..8be99f61 --- /dev/null +++ b/.config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish @@ -0,0 +1,7 @@ +# +# Git branch +# + +function __sf_util_git_branch -d "Display the current branch name" + echo (command git rev-parse --abbrev-ref HEAD 2>/dev/null) +end |