about summary refs log tree commit diff stats
path: root/bash/completion.bash
diff options
context:
space:
mode:
authorCase Duckworth2022-04-13 17:20:13 -0500
committerCase Duckworth2022-04-13 17:20:13 -0500
commit34d6372186b79a9b1004884152ec022fa43ef81d (patch)
tree6b3248a12d35c7aa06959fa5e226055756f32f8b /bash/completion.bash
parentEmacs stuff (diff)
parentRemove apk from sudo aliases (diff)
downloadetc-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.bash18
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 4POSSIBLE_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 10for 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
15done