Skip to content

Instantly share code, notes, and snippets.

@changs
Created May 16, 2014 13:35
Show Gist options
  • Save changs/68706997060452b8ec75 to your computer and use it in GitHub Desktop.
Save changs/68706997060452b8ec75 to your computer and use it in GitHub Desktop.
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 "√" git_commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment