Skip to content
Myr

docs: update zsh integration instructions (#3794)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by LangLangBart · committed by GitHub · parent 8a110e0 · Browse files · 3 files+8 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+8 added−4 removed

  • other:+8 added−4 removed

3 files+8 added−4 removed

modified:man/man1/fzf.1+1 added-1 removed
909 unmodified lines
910.TP911.B "--zsh"912Print script to set up Zsh shell integration913914e.g. \fBeval "$(fzf --zsh)"\fR914e.g. \fBsource <(fzf --zsh)\fR915916.TP917.B "--fish"918Print script to set up Fish shell integration
657 unmodified lines
modified:install+5 added-1 removed
263 unmodified lines
264265EOF266267 if [[ $auto_completion -eq 1 ]] && [[ $key_bindings -eq 1 ]]; then268 if [[ "$shell" = zsh ]]; then269 echo "source <(fzf --$shell)" >> "$src"270 else268 echo "eval \"\$(fzf --$shell)\"" >> "$src"271 echo "eval \"\$(fzf --$shell)\"" >> "$src"272 fi273 else274 cat >> "$src" << EOF275# Auto-completion276# ---------------
114 unmodified lines
modified:README.md+2 added-2 removed
202 unmodified lines
203 ```204* zsh205 ```sh206 # Set up fzf key bindings and fuzzy completion207 eval "$(fzf --zsh)"207 source <(fzf --zsh)208 ```209* fish210 ```fish211 # Set up fzf key bindings
13 unmodified lines
225> `FZF_ALT_C_COMMAND` to an empty string when sourcing the script.226> For example, to disable ALT-C binding:227>228> * bash: `FZF_ALT_C_COMMAND= eval "$(fzf --bash)"`229> * zsh: `FZF_ALT_C_COMMAND= eval "$(fzf --zsh)"`229> * zsh: `FZF_ALT_C_COMMAND= source <(fzf --zsh)`230> * fish: `fzf --fish | FZF_ALT_C_COMMAND= source`231>232> Setting the variables after sourcing the script will have no effect.233
670 unmodified lines