mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 13:48:16 +08:00
git function to determine git branch name
This commit is contained in:
commit
1c6a7f8de3
3
functions/git/git_branch_name.fish
Normal file
3
functions/git/git_branch_name.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function git_branch_name
|
||||
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
|
||||
end
|
Loading…
Reference in New Issue
Block a user