Debian Codegraph @

debian/patches/force-load-bash-comp-plugins

raw
1 Description: Force load bash completion plugins
2 New style of Debian bash completion use load on demand of
3 files. Unfortunately, cme plugins come with bash completions
4 snippets that are not loaded with this mechanism. Hence, these lines
5 circumvent delayed for the bash completions of cme plugins
6 .
7 This patch is Debian specific.. Well I think so...
8 Forwarded: not-needed
9 Author: dod
10 --- a/contrib/bash_completion.cme
11 +++ b/contrib/bash_completion.cme
12 @@ -12,6 +12,15 @@
13
14 global_options='--force-load --create --trace --quiet --file --verbose --canonical'
15
16 +# New style of Debian bash completion use load on demand of
17 +# files. Unfortunately, cme plugins come with bash completions
18 +# snippets that are not loaded with this mechanism. Hence, these lines
19 +# circumvent delayed for the bash completions of cme plugins
20 +for file in /usr/share/bash-completion/completions/cme[-_]*
21 +do
22 + . $file
23 +done
24 +
25 _cme_models()
26 {
27 MODELS=$(perl -MConfig::Model::Lister -e'print Config::Model::Lister::models;')