alias gdc='git diff --cached'
alias gc='git commit -v'
compdef _git gc=git-commit
+alias gcs='git commit -v --squash'
+compdef _git gcs=git-commit
+alias gcf='git commit -v --fixup'
+compdef _git gcf=git-commit
alias gca='git commit -v -a'
compdef _git gca=git-commit
alias gco='git checkout'
print "$fg_bold[white]$1$reset_color\n$2\n"
}
-msg "gc --{fixup,squash} :/commitmsg " \
-"auto constructs a '{fixup,squash}!' commit message for the last commit matching
-'commitmsg'"
-msg "git rebase --autosquash " \
-"{fixup,squash} commits starting with {fixup,squash}!, must be --interactive"
short "[count][\"x]gr{motion}" 'Replace {motion} text with the contents of register x.'
short ":Cd" "lcd %:h"
short ":Cr" "goto git root or home"