#722347 please make bash-completion optional

#722347#5
Date:
2013-09-10 12:53:31 UTC
From:
To:
Currently bash-completion is hardwired into every login
shell by some code in /etc/profile. This is pretty painful.
I would _love_ to avoid reading /usr/share/bash-completions/\
completions for every login.

Don't get me wrong, in many cases the bash-completions
are surely very usefull, but some modules in /usr/share/bash-\
completion/completions are apita (sorry). IMHO the downsides
outweigh the advantages by far.

Uninstalling bash-completion is not an option, of course.
I don't want to disable it for everybody, but just for my
own account.


Regards
Harri

#722347#10
Date:
2013-09-10 13:08:12 UTC
From:
To:
I don't know exactly how the Debian package hooks bash-completion into
user profiles, but if the package uses the generic profile.d
scriptlet, see bash-completion README:

| The profile.d script provides a configuration file hook that can be
| used to prevent loading bash_completion on per user basis when it's
| installed system wide.  To do this, turn off programmable completion
| with "shopt -u progcomp" in $XDG_CONFIG_HOME/bash_completion
| (~/.config/bash_completion if $XDG_CONFIG_HOME is not set), and turn
| it back on for example in ~/.bashrc if you want to use programmable
| completion for other purposes.

#722347#15
Date:
2013-11-13 09:23:11 UTC
From:
To:
Do you think it would be possible to have a more
fine-grained control here? It might be very helpful
if a user could choose in his .bashrc which completion
modules are read and which are ignored.

Regards
Harri