From: Oleg Broytman Date: Fri, 13 Oct 2017 17:23:11 +0000 (+0300) Subject: .shellrc: Fix shell syntax X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d2aa8f4870cc2ed1d4051baa1c36f837719d1a64;p=dotfiles.git .shellrc: Fix shell syntax Read completion files one by one. --- 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