1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-05 06:25:00 +00:00
dotfiles/.config/fish/functions/__parse_git_branch.fish

5 lines
181 B
Fish
Raw Normal View History

2018-11-15 01:10:13 +00:00
function __parse_git_branch -d "Parse current Git branch name"
command git symbolic-ref --short HEAD ^/dev/null;
or echo (command git show-ref --head -s --abbrev HEAD)[1]
end