Merge pull request #550 from gene-pavlovsky/gene-pavlovsky-patch-2

[bash] Update key-bindings.bash
This commit is contained in:
Junegunn Choi 2016-04-23 11:35:27 +09:00
commit 95764bef6f

View File

@ -65,7 +65,7 @@ if [ -n "$TMUX_PANE" ]; then
[ $BASH_VERSINFO -gt 3 ] && __use_tmux_auto=1
fi
if [ -z "$(set -o | \grep '^vi.*on')" ]; then
if [[ $'\n'$(set -o) != *$'\n'vi*on* ]]; then
# Required to refresh the prompt after fzf
bind '"\er": redraw-current-line'
bind '"\e^": history-expand-line'