From 152988c17bd6c35ce55652d123db8b65a32f98e4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 10 Apr 2024 00:46:09 +0900 Subject: [shell] Revert interactiveness checks for eval So that there's no error even when the scripts are mistakenly evaluated in non-interactive sessions. bash -c 'eval "$(fzf --bash)"; echo done' zsh -c 'eval "$(fzf --zsh)"; echo done' * https://github.com/junegunn/fzf/pull/3675#issuecomment-2044860901 * https://github.com/junegunn/fzf/commit/f103aa4753b435f8f45c5130323effeb75583c15 --- shell/key-bindings.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shell/key-bindings.bash') diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index b132b179..9a3dff71 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -11,7 +11,7 @@ # - $FZF_ALT_C_COMMAND # - $FZF_ALT_C_OPTS -[[ $- =~ i ]] || return 0 +if [[ $- =~ i ]]; then # Key bindings @@ -132,3 +132,5 @@ if [[ "${FZF_ALT_C_COMMAND-x}" != "" ]]; then bind -m vi-command '"\ec": "\C-z\ec\C-z"' bind -m vi-insert '"\ec": "\C-z\ec\C-z"' fi + +fi -- cgit v1.2.3