mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
docs(fzf): improved documentation
This commit is contained in:
parent
b9ad5b6ec4
commit
73bbef13e6
1 changed files with 15 additions and 0 deletions
|
|
@ -82,3 +82,18 @@ The plugin tries to detect and configure `fzf` from a variety of environments. I
|
||||||
- `/usr/share/fzf`, `/usr/local/share/examples/fzf`, etc
|
- `/usr/share/fzf`, `/usr/local/share/examples/fzf`, etc
|
||||||
- Results of `fzf-share` or `brew --prefix fzf`
|
- Results of `fzf-share` or `brew --prefix fzf`
|
||||||
If none of these are successful, the plugin shows an error prompting you to set `FZF_BASE`.
|
If none of these are successful, the plugin shows an error prompting you to set `FZF_BASE`.
|
||||||
|
|
||||||
|
## Example `.zshrc` Setup
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
# Set variables before sourcing Oh My Zsh
|
||||||
|
export FZF_DEFAULT_COMMAND='fd --type f --hidden --exclude .git'
|
||||||
|
export FZF_BASE="$HOME/.fzf"
|
||||||
|
# export DISABLE_FZF_AUTO_COMPLETION="true"
|
||||||
|
# export DISABLE_FZF_KEY_BINDINGS="true"
|
||||||
|
|
||||||
|
# Enable plugin
|
||||||
|
plugins=(git fzf)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue