Skip to content

Instantly share code, notes, and snippets.

@mollifier
Created November 25, 2013 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mollifier/7635865 to your computer and use it in GitHub Desktop.
Save mollifier/7635865 to your computer and use it in GitHub Desktop.
zsh で連続したスペースにキーバインドを割り当てる ref: http://qiita.com/mollifier/items/2ba8ebddc222f9d21b6d
function _double_space_to_git() {
if [[ "${BUFFER}" == " " ]]; then
LBUFFER="git "
else
zle self-insert
fi
}
zle -N _double_space_to_git
bindkey ' ' _double_space_to_git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment