]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Adapt fzf config for linux
authorRuben Beltran del Rio <redacted>
Fri, 15 Apr 2022 09:12:25 +0000 (09:12 +0000)
committerRuben Beltran del Rio <redacted>
Fri, 15 Apr 2022 09:12:25 +0000 (09:12 +0000)
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
 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
 
 ################################################################################
 fi
 
 ################################################################################