commit 1c6a7f8de3ed31b9288755df767a1135b642ac13 Author: Bruno Pinto Date: Mon Jul 23 10:58:43 2012 -0300 git function to determine git branch name diff --git a/functions/git/git_branch_name.fish b/functions/git/git_branch_name.fish new file mode 100644 index 0000000..601e6a3 --- /dev/null +++ b/functions/git/git_branch_name.fish @@ -0,0 +1,3 @@ +function git_branch_name + echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') +end