bash-completion-Bugs item #314009 was changed at 2013-08-15 01:25 by Igor Murzov You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314009&group_id=100114
>Status: Closed Priority: 3 Submitted By: Paul Smith (psmith-guest) Assigned to: Nobody (None) Summary: There is no way to permanently disable completion for a single command Distribution: --Distribution-Agnostic-- Originally reported in: None Milestone: None Status: Invalid Original bug number: Initial Comment: I like having completion for many of the commands that are provided with this package, but some of them have completion that drives me crazy; for example, gdb's command line can be incredibly complex and tab completion on gdb just annoys the bejeebers out of me. However, there's no way to disable completion just for a single command. If I turn it off with complete -r gdb, then the next time I try to tab-complete on a gdb command line the default complete loader is invoked and it re-instates the completion script. Bash-completion really needs a way for users to "opt out" of default completions for certain commands. For example maybe the default completer function could check the command name to see if it's in a variable such as BASH_COMPLETION_DISABLE and if so, it would not look for a completion file to load. Then I could add to my ~/.bash_completion file something like: complete -r gdb complete -r foo complete -r bar BASH_COMPLETION_DISABLE="gdb foo bar" and have it stick. Or something like that. ---------------------------------------------------------------------- >Comment By: Igor Murzov (garik-guest) Date: 2013-08-15 01:25 Message: I assume the suggested solution does work. So I'm closing the bug. ---------------------------------------------------------------------- Comment By: Igor Murzov (garik-guest) Date: 2013-02-10 01:12 Message: Try to add "complete -F _minimal gdb" to your ~/.bashrc and see if it works for you. ---------------------------------------------------------------------- You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314009&group_id=100114 _______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel
