From 35d842459c38bac082ad9c7f81c511ec304d683b Mon Sep 17 00:00:00 2001 From: lo <9201895+stdlo@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:20:00 -0700 Subject: [PATCH] Add support for FZF_DEFAULT_OPTS_FILE --- functions/_fzf_wrapper.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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