diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-03-13 23:59:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 23:59:34 +0900 |
commit | e74b1251c0f579335e03b3e7182cd7a9f88dbe37 (patch) | |
tree | 635d9bd3d4be38ca5623b8ce7241c2674c01b532 /man/man1/fzf.1 | |
parent | d282a1649d7d953f028306f13d6616958f3fd1f3 (diff) |
Embed shell integration scripts in fzf binary (`--bash` / `--zsh` / `--fish`) (#3675)
This simplifies the distribution, and the users are less likely to have
problems caused by using incompatible scripts and binaries.
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --bash)"
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --zsh)"
# Set up fzf key bindings
fzf --fish | source
Diffstat (limited to 'man/man1/fzf.1')
-rw-r--r-- | man/man1/fzf.1 | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index c29f1e23..56aeeea5 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -33,6 +33,10 @@ fzf [options] fzf is a general-purpose command-line fuzzy finder. .SH OPTIONS +.SS Note +.TP +Most long options have the opposite version with \fB--no-\fR prefix. + .SS Search mode .TP .B "-x, --extended" @@ -879,9 +883,24 @@ The default value is the current working directory. Comma-separated list of directory names to skip during the directory walk. The default value is \fB.git,node_modules\fR. -.SS Note +.SS Shell integration .TP -Most options have the opposite versions with \fB--no-\fR prefix. +.B "--bash" +Print script to set up Bash shell integration + +e.g. \fBeval "$(fzf --bash)"\fR + +.TP +.B "--zsh" +Print script to set up Zsh shell integration + +e.g. \fBeval "$(fzf --zsh)"\fR + +.TP +.B "--fish" +Print script to set up Fish shell integration + +e.g. \fBfzf --fish | source\fR .SH ENVIRONMENT VARIABLES .TP |