Fixed git add keybinding for zsh

This commit is contained in:
Nathan Broadbent
2012-08-22 19:48:44 +12:00
parent ae6bb783e9
commit 8aa79a0b78

View File

@@ -28,7 +28,7 @@ if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then
if ! set -o | grep -q '^vi .*on$'; then if ! set -o | grep -q '^vi .*on$'; then
if [[ $shell == "zsh" ]]; then if [[ $shell == "zsh" ]]; then
_bind "$git_commit_all_keys" " git_commit_all""\n" _bind "$git_commit_all_keys" " git_commit_all""\n"
_bind "$git_add_and_commit_keys" " \e[1~ git_add_and_commit""\n" _bind "$git_add_and_commit_keys" " \e[1~ git_add_and_commit ""\n"
else else
_bind "$git_commit_all_keys" "\" git_commit_all\n\"" _bind "$git_commit_all_keys" "\" git_commit_all\n\""
_bind "$git_add_and_commit_keys" "\"\e[1~ git_add_and_commit \n\"" _bind "$git_add_and_commit_keys" "\"\e[1~ git_add_and_commit \n\""