From 03e26ef7a4211846a4bd74046b8657b06f3562a0 Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Wed, 18 Jul 2018 10:11:44 -0400 Subject: [PATCH] Only initialize FZF_DEFAULT_COMMAND if not already set --- plugins/available/fzf.plugin.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/available/fzf.plugin.bash b/plugins/available/fzf.plugin.bash index 5aacc37d..f2eddeb1 100644 --- a/plugins/available/fzf.plugin.bash +++ b/plugins/available/fzf.plugin.bash @@ -6,7 +6,9 @@ about-plugin 'load fzf, if you are using it' [ -f ~/.fzf.bash ] && source ~/.fzf.bash -command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f' +if [ -z ${FZF_DEFAULT_COMMAND+x} ]; then + command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f' +fi fe() { about "Open the selected file in the default editor"