Created
June 25, 2012 09:06
-
-
Save changs/2987535 to your computer and use it in GitHub Desktop.
ESC-i to put git commit -am "[#pivotal_id_from_clipboard]
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
function git_commit() { | |
cmd='git commit -am "[#' | |
space=' "' | |
BUFFER=$cmd$(pbpaste)]$space | |
zle get-line | |
zle end-of-line | |
zle backward-char | |
} | |
zle -N git_commit | |
bindkey "^[i" git_commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment