summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-23 23:21:05 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-23 23:22:53 -0700
commitde87394d24f8ce50e5d398c3b0373d2dd4342f58 (patch)
treeb47c6df1c6e547bd27fadedf19b594ab1a21d374
parent4ae15d8fe4a8294f2396cde530aca05c0773008c (diff)
downloaddotfiles-de87394d24f8ce50e5d398c3b0373d2dd4342f58.tar.gz
load bash_completion in a way closer to what's documented
-rw-r--r--.bashrc6
1 files 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