gnu.bash.bug
[Top] [All Lists]

New feature: Implement catch-all programmable completion handler

Subject: New feature: Implement catch-all programmable completion handler
From: Roman Rakus
Date: Thu, 08 Jan 2009 14:16:24 +0100
Newsgroups: gnu.bash.bug


Hi,
what about something like

function __bash_completion_loader() {
 source "/etc/bash_completion.d/$1.sh" &>/dev/null
 return 127
}
complete -F __bash_completion_loader ''

which will catch all programmable completions? Need change in bash.
More info at https://bugzilla.redhat.com/show_bug.cgi?id=475229
RR




<Prev in Thread] Current Thread [Next in Thread>