bash: source all files under ~/.local/etc/bash
This commit is contained in:
parent
eb2662d1dc
commit
81c785f04b
1 changed files with 11 additions and 7 deletions
|
@ -444,11 +444,15 @@ colortest() {
|
|||
stty -ixon # disable ctrl-s and ctrl-q
|
||||
_update_colors "${BACKGROUND:-dark}"
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
while read -r f; do [ -f "$f" ] && source "$f"; done <<EOF
|
||||
/usr/local/etc/profile.d/bash_completion.sh
|
||||
/usr/share/bash-completion/bash_completion
|
||||
$LOCAL_CONFIG/bash/profile
|
||||
EOF
|
||||
unset f
|
||||
_source_extra_configs() {
|
||||
local configs=(
|
||||
/usr/local/etc/profile.d/bash_completion.sh
|
||||
/usr/share/bash-completion/bash_completion
|
||||
$LOCAL_CONFIG/bash/*
|
||||
)
|
||||
local f
|
||||
for f in ${configs[@]}; do [ -f "$f" ] && source "$f"; done
|
||||
}
|
||||
_source_extra_configs
|
||||
|
||||
true
|
||||
|
|
Loading…
Add table
Reference in a new issue