1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-13 02:12:44 +00:00
dotfiles/.config/fish/functions/__parse_git_branch.fish

5 lines
181 B
Fish

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