From b59caec489df087a308df20d39270dd9a12d52b2 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sat, 10 Mar 2012 12:51:18 +0800 Subject: [PATCH] Attempted fix for keyboard bindings (#19) --- lib/git/aliases_and_bindings.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/git/aliases_and_bindings.sh b/lib/git/aliases_and_bindings.sh index e7a4fcd..73d42ee 100644 --- a/lib/git/aliases_and_bindings.sh +++ b/lib/git/aliases_and_bindings.sh @@ -151,7 +151,7 @@ _bind(){ if [[ $shell == "zsh" ]]; then bindkey -s "$1" "$2" else # bash - bind "\"$1\": \"$2\"" + bind "\"$1\": $2" fi fi } @@ -160,8 +160,8 @@ _bind(){ if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then case "$TERM" in xterm*|rxvt*) - _bind "$git_commit_all_keys" " git_commit_all\n" - _bind "$git_add_and_commit_keys" "\e[1~ git_add_and_commit \n" + _bind "$git_commit_all_keys" "\" git_commit_all\n\"" + _bind "$git_add_and_commit_keys" "\"\e[1~ git_add_and_commit \n\"" # Commands are prepended with a space so that they won't be added to history. # Make sure this is turned on with: