From de87394d24f8ce50e5d398c3b0373d2dd4342f58 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 23 Nov 2022 23:21:05 -0700 Subject: load bash_completion in a way closer to what's documented --- .bashrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index b2befda2..fa3b3876 100644 --- a/.bashrc +++ b/.bashrc @@ -20,10 +20,8 @@ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h:\w\a\]\[\e[1m\]$PS1\[\e[0m\] *) PS1="\[\e[1m\]$PS1\[\e[0m\]" ;; esac -# enable better completion -if [ -f /etc/bash_completion ]; then - . /etc/bash_completion -fi +[ -f /usr/share/bash-completion/bash_completion ] \ + && . /usr/share/bash-completion/bash_completion # history settings HISTCONTROL=ignorespace:ignoredups -- cgit v1.2.3