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;"
|
PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }"history -a; history -c; history -r;"
|
||||||
|
|
||||||
# bash completion
|
# bash completion
|
||||||
if ! shopt -oq posix; then
|
[ -f /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
||||||
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
|
|
||||||
|
|
||||||
# osc7
|
# osc7
|
||||||
osc7_cwd() {
|
osc7_cwd() {
|
||||||
|
|
Loading…
Reference in New Issue