summaryrefslogtreecommitdiff
path: root/config/fish/functions/__parse_git_branch.fish
blob: 42b46fba72e862fbd00996af179905f8174f2d90 (plain)
1
2
3
4
function __parse_git_branch -d "Parse current Git branch name"
  command git symbolic-ref --short HEAD ^/dev/null;
    or command git show-ref --head -s --abbrev | head -n1 ^/dev/null
end