bash: Don't enable extended completion twice.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 29 Feb 2012 14:23:17 +0000 (15:23 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 29 Feb 2012 14:23:17 +0000 (15:23 +0100)
It is already enabled in /etc/profile.d/bash_completion.sh, so don't
bother doing it again in /etc/bash.bashrc.

etc/bash.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 {