diff options
author | Case Duckworth | 2022-04-13 17:20:13 -0500 |
---|---|---|
committer | Case Duckworth | 2022-04-13 17:20:13 -0500 |
commit | 34d6372186b79a9b1004884152ec022fa43ef81d (patch) | |
tree | 6b3248a12d35c7aa06959fa5e226055756f32f8b /bash/completion.bash | |
parent | Emacs stuff (diff) | |
parent | Remove apk from sudo aliases (diff) | |
download | etc-34d6372186b79a9b1004884152ec022fa43ef81d.tar.gz etc-34d6372186b79a9b1004884152ec022fa43ef81d.zip |
Merge branch 'main' of github.com:duckwork/etc
Diffstat (limited to 'bash/completion.bash')
-rw-r--r-- | bash/completion.bash | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/bash/completion.bash b/bash/completion.bash index 50e8f35..764463e 100644 --- a/bash/completion.bash +++ b/bash/completion.bash | |||
@@ -1,7 +1,15 @@ | |||
1 | # source completions | 1 | # Completions.bash |
2 | # Source bash completion libraries | ||
2 | 3 | ||
3 | . /etc/bash_completion | 4 | POSSIBLE_COMPLETION_FILES=( |
5 | /etc/bash_completion # Debian | ||
6 | /etc/profile.d/bash_completion.sh # Alpine | ||
7 | # I'm sure there are many more | ||
8 | ) | ||
4 | 9 | ||
5 | # for file in /etc/bash_completion.d/*; do | 10 | for candidate in "${POSSIBLE_COMPLETION_FILES[@]}"; do |
6 | # [ -r "$file" ] && source "$file" | 11 | if [[ -r "$candidate" ]]; then |
7 | # done | 12 | source "$candidate" |
13 | break # XXX: Do I want this? | ||
14 | fi | ||
15 | done | ||