Created
August 14, 2015 09:44
-
-
Save changs/9a26cb26f77b63713c7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_commit() { | |
cmd='git commit -a -m "" -m "[' | |
space='"' | |
BUFFER=$cmd$(pbpaste)]$space | |
zle get-line | |
zle end-of-line | |
zle backward-word | |
zle backward-word | |
zle backward-word | |
zle forward-char | |
zle forward-char | |
zle forward-char | |
} | |
zle -N git_commit | |
bindkey "√" git_commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment