minor cleanups to fzf plugin
parent
be2180c365
commit
ca409b699d
|
|
@ -4,14 +4,16 @@
|
|||
cite about-plugin
|
||||
about-plugin 'load fzf, if you are using it'
|
||||
|
||||
if [ -f ~/.fzf.bash ]; then
|
||||
_command_exists fzf || return
|
||||
|
||||
if [ -r ~/.fzf.bash ]; then
|
||||
source ~/.fzf.bash
|
||||
elif [ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash ]; then
|
||||
elif [ -r "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash ]; then
|
||||
source "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash
|
||||
fi
|
||||
|
||||
if [ -z ${FZF_DEFAULT_COMMAND+x} ]; then
|
||||
command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f'
|
||||
if [ -z ${FZF_DEFAULT_COMMAND+x} ] && _command_exists fd ; then
|
||||
export FZF_DEFAULT_COMMAND='fd --type f'
|
||||
fi
|
||||
|
||||
fe() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue