mirror of
https://github.com/junegunn/fzf.git
synced 2024-11-09 20:33:31 +03:00
docs: update zsh integration instructions (#3794)
This commit is contained in:
parent
8a110e02b9
commit
030428ba43
@ -204,7 +204,7 @@ Add the following line to your shell configuration file.
|
||||
* zsh
|
||||
```sh
|
||||
# Set up fzf key bindings and fuzzy completion
|
||||
eval "$(fzf --zsh)"
|
||||
source <(fzf --zsh)
|
||||
```
|
||||
* fish
|
||||
```fish
|
||||
@ -226,7 +226,7 @@ Add the following line to your shell configuration file.
|
||||
> For example, to disable ALT-C binding:
|
||||
>
|
||||
> * bash: `FZF_ALT_C_COMMAND= eval "$(fzf --bash)"`
|
||||
> * zsh: `FZF_ALT_C_COMMAND= eval "$(fzf --zsh)"`
|
||||
> * zsh: `FZF_ALT_C_COMMAND= source <(fzf --zsh)`
|
||||
> * fish: `fzf --fish | FZF_ALT_C_COMMAND= source`
|
||||
>
|
||||
> Setting the variables after sourcing the script will have no effect.
|
||||
|
4
install
4
install
@ -265,7 +265,11 @@ fi
|
||||
EOF
|
||||
|
||||
if [[ $auto_completion -eq 1 ]] && [[ $key_bindings -eq 1 ]]; then
|
||||
if [[ "$shell" = zsh ]]; then
|
||||
echo "source <(fzf --$shell)" >> "$src"
|
||||
else
|
||||
echo "eval \"\$(fzf --$shell)\"" >> "$src"
|
||||
fi
|
||||
else
|
||||
cat >> "$src" << EOF
|
||||
# Auto-completion
|
||||
|
@ -911,7 +911,7 @@ e.g. \fBeval "$(fzf --bash)"\fR
|
||||
.B "--zsh"
|
||||
Print script to set up Zsh shell integration
|
||||
|
||||
e.g. \fBeval "$(fzf --zsh)"\fR
|
||||
e.g. \fBsource <(fzf --zsh)\fR
|
||||
|
||||
.TP
|
||||
.B "--fish"
|
||||
|
Loading…
Reference in New Issue
Block a user