Add support for per-user bash completion files
This commit is contained in:
parent
4e9c8e8470
commit
f65c4858ab
1 changed files with 5 additions and 7 deletions
|
@ -361,13 +361,11 @@ stty -ixon # disable ctrl-s and ctrl-q
|
||||||
_update_colors "${BACKGROUND:-dark}"
|
_update_colors "${BACKGROUND:-dark}"
|
||||||
|
|
||||||
# Enable available completion helpers
|
# Enable available completion helpers
|
||||||
if [ -d "$LOCAL_PREFIX/etc/bash_completion.d" ]; then
|
while read -r d; do [ -d "$d" ] && for f in "$d"/*; do . "$f"; done; done <<EOL
|
||||||
for completion in "$LOCAL_PREFIX/etc/bash_completion.d"/*; do
|
$LOCAL_PREFIX/etc/bash_completion.d
|
||||||
# shellcheck disable=SC1090
|
$XDG_CONFIG_HOME/bash/completion.d
|
||||||
source "$completion"
|
EOL
|
||||||
done
|
unset d f
|
||||||
unset completion
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Source a local bashrc if available
|
# Source a local bashrc if available
|
||||||
if [ -f "$XDG_CONFIG_HOME/bash/profile.local" ]; then
|
if [ -f "$XDG_CONFIG_HOME/bash/profile.local" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue