aboutsummaryrefslogtreecommitdiff
path: root/runcoms
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-04-15 09:12:25 +0000
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-04-15 09:12:25 +0000
commit071e5a5319b45799c866af9113f6d47b10d81e4e (patch)
tree5d05c2d45ad4cdea7860f744cb8421014866373f /runcoms
parent2a0b2b95e0568c4e6fcb61f892645fbb58343f73 (diff)
Adapt fzf config for linux
Diffstat (limited to 'runcoms')
-rw-r--r--runcoms/zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/runcoms/zshrc b/runcoms/zshrc
index cf1c248..5f0ed81 100644
--- a/runcoms/zshrc
+++ b/runcoms/zshrc
@@ -55,7 +55,11 @@ export FZF_DEFAULT_OPTS='--preview ''bat --style=numbers --color=always {} | hea
if [[ -s "/opt/homebrew/bin/brew" ]]; then
export FZF_VIM_PATH=/opt/homebrew/opt/fzf
else
- export FZF_VIM_PATH=/usr/local/opt/fzf
+ if [[ -s "/opt/homebrew/bin/brew" ]]; then
+ export FZF_VIM_PATH=/usr/local/opt/fzf
+ else
+ export FZF_VIM_PATH=/usr/share/doc/fzf/examples
+ fi
fi
################################################################################