From 73bbef13e697855b6ac7edbb9537a381ab8928ce Mon Sep 17 00:00:00 2001 From: Hanashiko Date: Sat, 24 May 2025 13:59:57 +0300 Subject: [PATCH] docs(fzf): improved documentation --- plugins/fzf/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/fzf/README.md b/plugins/fzf/README.md index 55217f728..3189763d4 100644 --- a/plugins/fzf/README.md +++ b/plugins/fzf/README.md @@ -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 - 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`. + +## 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 +```