dotfiles/private_dot_bashrc.d/bash-completion.sh

18 lines
373 B
Bash
Raw Normal View History

2021-04-13 14:43:04 -04:00
for rc in /etc/bash_completion /usr/local/share/bash-completion/bash_completion /usr/share/bash-completion/bash_completion ; do
if [ -f "$rc" ] ; then
. "$rc"
fi
done
unset rc
if [ -d /usr/local/etc/bash_completion.d ] ; then
for rc in /usr/local/etc/bash_completion.d/* ; do
if [ -f "$rc" ] ; then
. "$rc"
fi
done
fi
unset rc
complete -cf sudo