- Package:
- bash-completion
- Source:
- bash-completion
- Submitter:
- Harald Dunkel
- Date:
- 2013-11-13 09:27:05 UTC
- Severity:
- wishlist
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
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.
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