Changed git.plugin.zsh > added an in_git function

Added a netpunk.zsh-theme … displays battery charge remaining using batcharge.py, date, ruby version via rbenv, points out werther you're in a GIT or HG repository, has improved HG functions, but requires hg plugins prompt, tasks and mq. I built it, and now it's up for grabs :)
This commit is contained in:
Marin Marusic 2013-09-29 13:19:22 +02:00
commit fd4454502e
2 changed files with 59 additions and 0 deletions

View file

@ -97,6 +97,13 @@ compdef git-svn-dcommit-push=git
alias gsr='git svn rebase'
alias gsd='git svn dcommit'
function in_git {
if $(git status > /dev/null 2>&1); then
echo 1
fi
}
#
# Will return the current branch name
# Usage example: git pull origin $(current_branch)