diff options
author | Kjetil Ørbekk <kj@orbekk.com> | 2020-10-18 13:59:23 +0000 |
---|---|---|
committer | KJ Oerbekk <orbekk@google.com> | 2020-10-18 14:00:30 +0000 |
commit | 7952033da2d8a90cb0f9a30150cf6a45c6492b8d (patch) | |
tree | 1e223e4cdbaa440c27ba535ff9e75d3abe2d571b /old/config/fish/functions/__parse_git_branch.fish | |
parent | 5441276b4545772d62fe21aef542f57ab646125b (diff) |
Remove unused dotfiles
Diffstat (limited to 'old/config/fish/functions/__parse_git_branch.fish')
-rw-r--r-- | old/config/fish/functions/__parse_git_branch.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/old/config/fish/functions/__parse_git_branch.fish b/old/config/fish/functions/__parse_git_branch.fish new file mode 100644 index 0000000..42b46fb --- /dev/null +++ b/old/config/fish/functions/__parse_git_branch.fish @@ -0,0 +1,4 @@ +function __parse_git_branch -d "Parse current Git branch name" + command git symbolic-ref --short HEAD ^/dev/null; + or command git show-ref --head -s --abbrev | head -n1 ^/dev/null +end |