Only initialize FZF_DEFAULT_COMMAND if not already set
This commit is contained in:
@@ -6,7 +6,9 @@ about-plugin 'load fzf, if you are using it'
|
|||||||
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
|
if [ -z ${FZF_DEFAULT_COMMAND+x} ]; then
|
||||||
command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f'
|
command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f'
|
||||||
|
fi
|
||||||
|
|
||||||
fe() {
|
fe() {
|
||||||
about "Open the selected file in the default editor"
|
about "Open the selected file in the default editor"
|
||||||
|
|||||||
Reference in New Issue
Block a user