Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
328e67eb
Commit
328e67eb
authored
Nov 26, 2009
by
Toon Claes
Browse files
Merge branch 'master' of
git://github.com/robbyrussell/oh-my-zsh
parents
3f49658c
473dd3b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
328e67eb
...
...
@@ -12,3 +12,11 @@ parse_git_dirty () {
fi
}
#
# Will return the current branch name
# Usage example: git pull origin $(current_branch)
#
function
current_branch
()
{
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
return
echo
${
ref
#refs/heads/
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment