disable keyboard shortcuts by default
This commit is contained in:
@@ -65,6 +65,8 @@ git_show_alias="gsh"
|
|||||||
|
|
||||||
# Git Keyboard Shortcuts
|
# Git Keyboard Shortcuts
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
|
# Keyboard shortcuts are off by default. Set this to 'true' to enable them.
|
||||||
|
git_keyboard_shortcuts_enabled="false"
|
||||||
git_status_shortcuts_keys="\C- " # CTRL+SPACE
|
git_status_shortcuts_keys="\C- " # CTRL+SPACE
|
||||||
git_commit_all_keys="\C-x " # CTRL+x, SPACE
|
git_commit_all_keys="\C-x " # CTRL+x, SPACE
|
||||||
git_add_and_commit_keys="\C-xc" # CTRL+x, c
|
git_add_and_commit_keys="\C-xc" # CTRL+x, c
|
||||||
|
|||||||
@@ -110,6 +110,8 @@ _bind(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If keyboard shortcuts are enabled
|
||||||
|
if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
xterm*|rxvt*)
|
xterm*|rxvt*)
|
||||||
_bind "$git_status_shortcuts_keys" " git_status_shortcuts\n"
|
_bind "$git_status_shortcuts_keys" " git_status_shortcuts\n"
|
||||||
@@ -121,4 +123,5 @@ xterm*|rxvt*)
|
|||||||
# zsh: setopt histignorespace histignoredups
|
# zsh: setopt histignorespace histignoredups
|
||||||
# bash: HISTCONTROL=ignorespace:ignoredups
|
# bash: HISTCONTROL=ignorespace:ignoredups
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user