forked from tbird20d/ttc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_ttc
More file actions
26 lines (21 loc) · 619 Bytes
/
_ttc
File metadata and controls
26 lines (21 loc) · 619 Bytes
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
# file: ttc
# ttc parameter completion
_ttc ()
{
local cmd="${1##*/}"
local word=${COMP_WORDS[COMP_CWORD]}
local line=${COMP_LINE}
local tlist=( $(ttc list -q) )
local result
COMPREPLY=( $( compgen -W '-h -v -q -c --help console cp fsbuild \
get_config get_kernel help info kbuild kinstall list login off on \
pos reboot release reserve reset rm run set_config setenv status \
vars version wait_for' -- $word ) );
# if sub-command is already expanded, show sub-options for each command
case "$line" in
*console*|*info*|*kbuild*)
COMPREPLY=$tlist;;
esac
return 0
}
complete -F _ttc ttc