diff --git a/functions/_fzf_wrapper.fish b/functions/_fzf_wrapper.fish index 45556ce..eeb569e 100644 --- a/functions/_fzf_wrapper.fish +++ b/functions/_fzf_wrapper.fish @@ -4,9 +4,9 @@ function _fzf_wrapper --description "Prepares some environment variables before # Use --function so that it doesn't clobber SHELL outside this function. set -f --export SHELL (command --search fish) - # If FZF_DEFAULT_OPTS is not set, then set some sane defaults. + # If FZF_DEFAULT_OPTS or FZF_DEFAULT_OPTS_FILE is not set, then set some sane defaults. # See https://github.com/junegunn/fzf#environment-variables - if not set --query FZF_DEFAULT_OPTS + if not set --query FZF_DEFAULT_OPTS || not set --query FZF_DEFAULT_OPTS_FILE # cycle allows jumping between the first and last results, making scrolling faster # layout=reverse lists results top to bottom, mimicking the familiar layouts of git log, history, and env # border shows where the fzf window begins and ends