1
0
Fork 0

Simplify bash completion check in .bashrc

main
urosm 2024-10-02 00:40:25 +02:00
parent 466ff6507c
commit e15859d086
1 changed files with 1 additions and 7 deletions

View File

@ -26,13 +26,7 @@ shopt -s histappend
PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }"history -a; history -c; history -r;"
# bash completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
[ -f /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
# osc7
osc7_cwd() {