X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=ff0e12710ff3fc9a9c74cf8083897a9f38d1fb53;hb=4f28abc922643cea4d8aee6804067d688abcd600;hp=8d63ee79e55df1d256f35ba0ecfd64760faa5fb2;hpb=1f3fe552552b30058c570e8d593c2e01750330e5;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 8d63ee7..ff0e127 100644 --- a/.shellrc +++ b/.shellrc @@ -76,11 +76,15 @@ if test -n "$BASH_VERSION"; then if [ -f /etc/bash_completion ]; then . /etc/bash_completion elif [ -d /etc/bash_completion.d ]; then - . /etc/bash_completion.d/* + for _compf in /etc/bash_completion.d/*; do + . $_compf + done fi elif [ "$SHELL" = /usr/local/bin/bash ]; then if [ -d /usr/local/etc/bash_completion.d ]; then - . /usr/local/etc/bash_completion.d/* + for _compf in /usr/local/etc/bash_completion.d/*; do + . $_compf + done fi else echo "Unknown OS type, cannot source bash_completion" >&2