Created
November 25, 2013 03:27
-
-
Save mollifier/7635865 to your computer and use it in GitHub Desktop.
zsh で連続したスペースにキーバインドを割り当てる ref: http://qiita.com/mollifier/items/2ba8ebddc222f9d21b6d
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 _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