Simplify bash completion check in .bashrc
parent
466ff6507c
commit
e15859d086
8
.bashrc
8
.bashrc
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue