File: force-load-bash-comp-plugins

package info (click to toggle)
cme 1.043-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 392 kB
  • sloc: perl: 1,293; makefile: 19; sh: 9
file content (27 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Force load bash completion plugins
 New style of Debian bash completion use load on demand of
 files. Unfortunately, cme plugins come with bash completions
 snippets that are not loaded with this mechanism. Hence, these lines
 circumvent delayed for the bash completions of cme plugins
 .
 This patch is Debian specific.. Well I think so...
Forwarded: not-needed
Author: dod
--- a/contrib/bash_completion.cme
+++ b/contrib/bash_completion.cme
@@ -12,6 +12,15 @@
 
 global_options='--force-load --create --trace --quiet --file --verbose --canonical'
 
+# New style of Debian bash completion use load on demand of
+# files. Unfortunately, cme plugins come with bash completions
+# snippets that are not loaded with this mechanism. Hence, these lines
+# circumvent delayed for the bash completions of cme plugins
+for file in /usr/share/bash-completion/completions/cme[-_]*
+do
+    . $file
+done
+
 _cme_models()
 {
    MODELS=$(perl -MConfig::Model::Lister -e'print Config::Model::Lister::models;')