mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-13 17:06:27 +00:00
5 lines
181 B
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
|