blob: 70199ba8f88044be052fab02916c2e2d48416260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Dummy completion file for _comp_compgen tests -*- shell-script -*-
_comp_xfunc_compgen_cmd1_compgen_generator1() {
_comp_compgen -- -W '5foo 6bar 7baz'
}
_comp_cmd_compgen_cmd1__compgen_generator2() {
_comp_compgen -- -W '5abc 6def 7ghi'
}
_comp_cmd_compgen_cmd1() {
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
_comp_compgen -- -W '012 123 234'
_comp_compgen -ai compgen-cmd1 generator2
} &&
complete -F _comp_cmd_compgen_cmd1 compgen-cmd1
# ex: filetype=sh
|