mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
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:
parent
61e3951e4b
commit
fd4454502e
2 changed files with 59 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue