Only initialize FZF_DEFAULT_COMMAND if not already set

pull/1215/head
Adam Wallis 2018-07-18 10:11:44 -04:00
parent e8c3237fb4
commit 03e26ef7a4
1 changed files with 3 additions and 1 deletions

View File

@ -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"