1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-12 18:02:46 +00:00
dotfiles/.config/fish/fisher/functions/_pure_parse_git_branch.fish

5 lines
203 B
Fish

function _pure_parse_git_branch --description "Parse current Git branch name"
command git symbolic-ref --short HEAD 2>/dev/null;
or echo (command git show-ref --head -s --abbrev HEAD)[1]
end