]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - runcoms/zshrc
Adapt fzf config for linux
[rbdr/dotfiles] / runcoms / zshrc
index cf1c24816ff516aefb198ff1fc67fe82c2ad0825..5f0ed8112e63a37a267af2420775215e96645893 100644 (file)
@@ -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
 
 ################################################################################