diff options
author | Ben Marshall-Corser <benmarshallcorser@gmail.com> | 2013-03-17 23:00:12 +0000 |
---|---|---|
committer | Ben Marshall-Corser <benmarshallcorser@gmail.com> | 2013-03-17 23:00:12 +0000 |
commit | f7f487c42666adfe7b94ebed4714ed212ed22cb9 (patch) | |
tree | 0caca42604308acbae944ec2b1fd2a38a69170ef /plugins | |
parent | 0ab0e67ecfc52b4779b700149a9c51feeb05318e (diff) | |
download | zsh-f7f487c42666adfe7b94ebed4714ed212ed22cb9.tar.gz zsh-f7f487c42666adfe7b94ebed4714ed212ed22cb9.tar.bz2 zsh-f7f487c42666adfe7b94ebed4714ed212ed22cb9.zip |
Alias for commit and commit all with amend
For the lazy and forgetful. Don't worry, a bang is fine in an alias and completion.
:tada:
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git/git.plugin.zsh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 154aa6db1..15f901f86 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -14,8 +14,12 @@ gdv() { git diff -w "$@" | view - } compdef _git gdv=git-diff alias gc='git commit -v' compdef _git gc=git-commit +alias gc!='git commit -v --amend' +compdef _git gc!=git-commit alias gca='git commit -v -a' -compdef _git gca=git-commit +compdef _git gc=git-commit +alias gca!='git commit -v -a --amend' +compdef _git gca!=git-commit alias gco='git checkout' compdef _git gco=git-checkout alias gcm='git checkout master' |