about summary refs log tree commit diff stats
path: root/bash/completion.bash
blob: 764463e499484a9b1ffd24f8830fbf36e2953406 (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
)

for candidate in "${POSSIBLE_COMPLETION_FILES[@]}"; do
    if [[ -r "$candidate" ]]; then
        source "$candidate"
        break # XXX: Do I want this?
    fi
done