about summary refs log tree commit diff stats
path: root/bash/completion.bash
blob: 2b3ca37e2e8369ea79ffa1036132f03e299c34ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Completions.bash
# Source bash completion libraries

POSSIBLE_COMPLETION_FILES=(
    /etc/bash_completion              # Debian
    /etc/profile.d/bash_completion.sh # Alpine
    # I'm sure there are many more
    /usr/share/bash-completion/bash_completion
)

for candidate in "${POSSIBLE_COMPLETION_FILES[@]}"; do
    if [[ -r "$candidate" ]]; then
        source "$candidate"
    fi
done