summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash
index 47adf30f..8ecd6148 100644
--- a/shell/key-bindings.bash
+++ b/shell/key-bindings.bash
@@ -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'