From d169c951f3abe95ac533864d3ce0515bcb89adce Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:03:12 +0200 Subject: fix: Move 'emulate' command outside interactive check (#3736) --- shell/key-bindings.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'shell/key-bindings.zsh') diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index a75f4beb..07baa203 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -11,8 +11,6 @@ # - $FZF_ALT_C_COMMAND # - $FZF_ALT_C_OPTS -if [[ -o interactive ]]; then - # Key bindings # ------------ @@ -38,6 +36,7 @@ fi 'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases' { +if [[ -o interactive ]]; then # CTRL-T - Paste the selected file path(s) into the command line __fsel() { @@ -114,10 +113,9 @@ zle -N fzf-history-widget bindkey -M emacs '^R' fzf-history-widget bindkey -M vicmd '^R' fzf-history-widget bindkey -M viins '^R' fzf-history-widget +fi } always { eval $__fzf_key_bindings_options 'unset' '__fzf_key_bindings_options' } - -fi -- cgit v1.2.3