dotfiles/private_dot_bashrc.d/bash-completion.sh

18 lines
373 B
Bash

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