1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-13 17:06:27 +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