bash: Don't enable extended completion three times.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 29 Feb 2012 13:15:34 +0000 (14:15 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 29 Feb 2012 15:13:53 +0000 (16:13 +0100)
It is already enabled in /etc/profile.d/bash_completion, so don't also
enable it in /etc/bash.bashrc and ~/.bashrc as well.

etc/bash.bashrc
etc/skel/.bashrc

index 169413ad10cb929448e53d5c9d0dfbfb116f7806..0834c296976d9def53d2d7178db76c2e330d3c0f 100644 (file)
@@ -34,11 +34,6 @@ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 # or customize the prompt) in their ~/.bashrc as well.
 force_color_prompt=yes
 
-# enable bash completion in interactive shells
-if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
-    . /etc/bash_completion
-fi
-
 # if the command-not-found package is installed, use it
 if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
        function command_not_found_handle {
index ab43aef2bc24cf8dfc2dad22297c945dec90dbec..1afd4bc18879d3491beb647e6fd2f92858a0de4a 100644 (file)
@@ -93,10 +93,3 @@ fi
 if [ -f ~/.bash_aliases ]; then
     . ~/.bash_aliases
 fi
-
-# enable programmable completion features (you don't need to enable
-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
-# sources /etc/bash.bashrc).
-if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
-    . /etc/bash_completion
-fi