mirror of
https://github.com/junegunn/fzf.git
synced 2025-12-08 05:34:48 +08:00
[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
* f103aa4753
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# - $FZF_COMPLETION_TRIGGER (default: '**')
|
||||
# - $FZF_COMPLETION_OPTS (default: empty)
|
||||
|
||||
[[ -o interactive ]] || return 0
|
||||
if [[ -o interactive ]]; then
|
||||
|
||||
|
||||
# Both branches of the following `if` do the same thing -- define
|
||||
@@ -351,3 +351,5 @@ bindkey '^I' fzf-completion
|
||||
eval $__fzf_completion_options
|
||||
'unset' '__fzf_completion_options'
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user