sourcing bash completion for fzf only if it exists

This commit is contained in:
Andrew Davidson 2023-01-09 06:52:55 -08:00
parent 9534971f9c
commit 992cf340ae

View file

@ -238,7 +238,10 @@ function mt {
# Debian
if [ -d /usr/share/doc/fzf/examples ]; then
source /usr/share/doc/fzf/examples/key-bindings.bash
source /usr/share/doc/fzf/examples/completion.bash
if [-f /usr/share/doc/fzf/examples/completion.bash]; then
source /usr/share/doc/fzf/examples/completion.bash
fi
fi
# MacOS