Skip to content

Commit

Permalink
put git aliases inside test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfoster committed Jan 22, 2009
1 parent b666ab8 commit 1c0de57
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions 06_git
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [[ -x `which git` ]]; then
fi
}
function git-prompt() {
emulate -L zsh
emulate -L zsh
dirty_color=$fg[cyan]
branch=$(echo $gstatus | head -n 1 | sed 's/^# On branch //')
if [[ $branch == '# Not currently on any branch.' ]]; then
Expand Down Expand Up @@ -68,22 +68,24 @@ if [[ -x `which git` ]]; then
function nhgk () {
nohup gitk --all &
}
fi

alias gb='git branch -a -v'
alias gs='git status'
alias gd='git diff'
alias gf='git fetch'
alias gr='git-rebase'
alias gsc='git-svn dcommit'
alias gsr='git-svn rebase'
alias gsf='git-svn fetch'
# gc => git checkout master
# gc bugs => git checkout bugs
function gc {

alias g='git'
alias gb='git branch -a -v'
alias gs='git status'
alias gd='git diff'
alias gf='git fetch'
alias gr='git-rebase'
alias gsc='git-svn dcommit'
alias gsr='git-svn rebase'
alias gsf='git-svn fetch'
# gc => git checkout master
# gc bugs => git checkout bugs
function gc {
if [ -z "$1" ]; then
git checkout master
else
else
git checkout $1
fi
}
}
fi

0 comments on commit 1c0de57

Please sign in to comment.