Skip to content

Commit

Permalink
Add support for FZF_DEFAULT_OPTS_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlo committed Mar 26, 2024
1 parent dfdf693 commit 35d8424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/_fzf_wrapper.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35d8424

Please sign in to comment.