diff --git a/bashrc b/bashrc index e9b5696..ba90a24 100644 --- a/bashrc +++ b/bashrc @@ -24,9 +24,7 @@ if [ -d $HOME/.bash/aliases ]; then for file in $(ls $HOME/.bash/aliases/*); do if [ -d $HOME/.bash/aliases.d ]; then for file in $(ls $HOME/.bash/aliases.d/*); do source $file; done; fi # Source bash completion definitions -[[ -f /etc/bash-completion ]] && source /etc/bash-completion -[[ -f /etc/profile.d/bash-completion ]] && source /etc/profile.d/bash-completion -[[ -f /etc/profile.d/bash-completion.sh ]] && source /etc/profile.d/bash-completion.sh +for file in /etc/bash*completion /etc/profile.d/bash*completion* ; do source $file ; done if [ -f $HOME/.bash_completion ]; then source $HOME/.bash_completion; fi if [ -f $HOME/.bash/completion ]; then source $HOME/.bash/completion; fi