From 1833670fb91dfa17047af320ce7f015e0d500ba6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 29 Feb 2024 09:49:33 +0900 Subject: Add $FZF_DEFAULT_OPTS_FILE (#3618) For those who prefer to manage default options in a file. If the file is not found, fzf will exit with an error. We're not setting a default value for it because: 1. it's hard to find a default value that can be universally agreed upon 2. to avoid fzf having to check for the existence of the file even when it's not used --- man/man1/fzf.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'man/man1') diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index c10f334e..76bfa648 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -865,7 +865,14 @@ with \fB$SHELL -c\fR if \fBSHELL\fR is set, otherwise with \fBsh -c\fR, so in this case make sure that the command is POSIX-compliant. .TP .B FZF_DEFAULT_OPTS -Default options. e.g. \fBexport FZF_DEFAULT_OPTS="--extended --cycle"\fR +Default options. +.br +e.g. \fBexport FZF_DEFAULT_OPTS="--layout=reverse --border --cycle"\fR +.TP +.B FZF_DEFAULT_OPTS_FILE +The location of the file that contains the default options. +.br +e.g. \fBexport FZF_DEFAULT_OPTS_FILE=~/.fzfrc\fR .TP .B FZF_API_KEY Can be used to require an API key when using \fB--listen\fR option. If not set, -- cgit v1.2.3