From e15859d086b870d8acf00c0c460a79b560f34e2b Mon Sep 17 00:00:00 2001 From: urosm Date: Wed, 2 Oct 2024 00:40:25 +0200 Subject: [PATCH] Simplify bash completion check in .bashrc --- .bashrc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index b3e20fe..8b4bfa1 100644 --- a/.bashrc +++ b/.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() {