[arch-general] Selectively enable bash completion
Hi, I'd like to choose which commands will use bash completion and would avoid to enable it for all commands. Is that possible ? Thanks. -- Francis
Deleting the bash completion files that come with a package should, I think, harmlessly disable completion for that package.
On Sep 18, 2015 10:03 PM, "Neven Sajko" <nsajko@gmail.com> wrote:
Deleting the bash completion files that come with a package should, I think, harmlessly disable completion for that package.
Just want to point out one problem with that method: the completion file will be "reinstalled" when you upgrade that package.
Fri, 18 Sep 2015 22:05:13 +1200 Andrew Chen <andrew.chuanye.chen@gmail.com>:
On Sep 18, 2015 10:03 PM, "Neven Sajko" <nsajko@gmail.com> wrote:
Deleting the bash completion files that come with a package should, I think, harmlessly disable completion for that package.
Just want to point out one problem with that method: the completion file will be "reinstalled" when you upgrade that package.
... which can be avoided with "NoExtract" in pacman.conf.
On Fri, 18 Sep 2015 22:05:13 +1200, Andrew Chen wrote:
On Sep 18, 2015 10:03 PM, "Neven Sajko" <nsajko@gmail.com> wrote:
Deleting the bash completion files that come with a package should, I think, harmlessly disable completion for that package.
Just want to point out one problem with that method: the completion file will be "reinstalled" when you upgrade that package.
pacman.conf is your friend ;) $ grep NoExtract /etc/pacman.conf NoExtract = usr/share/xsessions/gnome.desktop usr/share/xsessions/gnome-fallback.desktop usr/share/xsessions/gnome-flashback-compiz.desktop usr/share/xsessions/openbox-kde.desktop usr/share/dbus-1/services/org.knopwob.dunst.service usr/share/xsessions/openbox.desktop usr/share/xsessions/lxqt.desktop etc/xdg/autostart/parcellite-startup.desktop #usr/share/applications/ardour.desktop
On Sep 19, 2015 1:50 AM, "Ralf Mardorf" <ralf.mardorf@rocketmail.com> wrote:
On Fri, 18 Sep 2015 22:05:13 +1200, Andrew Chen wrote:
On Sep 18, 2015 10:03 PM, "Neven Sajko" <nsajko@gmail.com> wrote:
Deleting the bash completion files that come with a package should, I think, harmlessly disable completion for that package.
Just want to point out one problem with that method: the completion file will be "reinstalled" when you upgrade that package.
pacman.conf is your friend ;)
$ grep NoExtract /etc/pacman.conf NoExtract = usr/share/xsessions/gnome.desktop
usr/share/xsessions/gnome-fallback.desktop usr/share/xsessions/gnome-flashback-compiz.desktop usr/share/xsessions/openbox-kde.desktop usr/share/dbus-1/services/org.knopwob.dunst.service usr/share/xsessions/openbox.desktop usr/share/xsessions/lxqt.desktop etc/xdg/autostart/parcellite-startup.desktop #usr/share/applications/ardour.desktop Ah, that is a useful feature. Thanks for letting us know.
On 09/18/2015 05:36 PM, Andrew Chen wrote:
Ah, that is a useful feature. Thanks for letting us know.
I also find NoExtract to be very useful as an alternative to localepurge, especially since it never takes up place to begin with (useful on computers with small HDDs). ... NoExtract = usr/share/help/* !usr/share/help/en* NoExtract = usr/share/locale/* !usr/share/locale/en* NoExtract = usr/share/man/* !usr/share/man/man* NoExtract = usr/share/vim/vim74/lang/* NoExtract = usr/share/licenses* ... -- Eli Schwartz
Op 18 sep. 2015 12:03 schreef "Neven Sajko" <nsajko@gmail.com>:
Deleting the bash completion files that come with a package should, I think, harmlessly disable completion for that package.
How about just disabling that feature in .bashrc or wherever (sounds like the OP knows this package better then me). Mvg, Guus
participants (7)
-
Andrew Chen
-
Eli Schwartz
-
Francis Moreau
-
Guus Snijders
-
Jens Adam
-
Neven Sajko
-
Ralf Mardorf