Log in

Tech Tip: Removing Bash’s Command Completions - Shlomif's Technical Posts Community [entries|archive|friends|userinfo]
Shlomif's Technical Posts Community

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Links:| Shlomi Fish's Homepage Main Journal Homesite Blog Planet Linux-IL Amir Aharoni in Unicode open dot dot dot ]

Tech Tip: Removing Bash’s Command Completions [Dec. 13th, 2011|12:44 pm]
Shlomif's Technical Posts Community


[Tags|, , , , ]
[Current Location |Home]
[Current Mood |happyhappy]
[Current Music |Jenna Drey - Why Should I Believe You (Rock Version)]

The normal way to remove a completion for a Bash command (say “mv”) is to do “complete -r mv”. However, with the bash-completion package installed on Mageia Linux Cauldron, this is not enough because it also adds a default completion for every invoked command. So in order to override this behaviour, type “complete -r -D” and then you can remove the commands’ completions permanently, using “complete -r mv” or whatever.