diff options
| author | LangLangBart <92653266+LangLangBart@users.noreply.github.com> | 2024-04-17 11:03:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-17 18:03:12 +0900 |
| commit | d169c951f3abe95ac533864d3ce0515bcb89adce (patch) | |
| tree | 82cf5758422b6bfa407c26c2f3cc248578062768 /shell/key-bindings.zsh | |
| parent | 90d7e38909bc704afea96e23acf93ba05ef9f0af (diff) | |
| download | fzf-d169c951f3abe95ac533864d3ce0515bcb89adce.tar.gz | |
fix: Move 'emulate' command outside interactive check (#3736)
Diffstat (limited to 'shell/key-bindings.zsh')
| -rw-r--r-- | shell/key-bindings.zsh | 6 |
1 files changed, 2 insertions, 4 deletions
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 |
