File tree Expand file tree Collapse file tree 32 files changed +109
-115
lines changed Expand file tree Collapse file tree 32 files changed +109
-115
lines changed Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated. Upstream completion is available in
4
4
# the Android SDK, use that instead.
5
5
6
- _adb_command_usage ()
6
+ _comp_cmd_adb__command_usage ()
7
7
{
8
8
COMPREPLY=($( compgen -W \
9
9
' $("$1" help 2>&1 | command grep "^ *\(adb \)\? *$2 " \
10
10
| command sed -e "s/[]|[]/\n/g" | _parse_help -)' -- " $cur " ) )
11
11
}
12
12
13
- _adb ()
13
+ _comp_cmd_adb ()
14
14
{
15
15
local cur prev words cword comp_args
16
16
_comp_initialize -- " $@ " || return
49
49
50
50
# TODO: more and better command completions
51
51
52
- _adb_command_usage " $1 " " $cmd "
52
+ _comp_cmd_adb__command_usage " $1 " " $cmd "
53
53
54
54
case $cmd in
55
55
push | restore | sideload)
65
65
;;
66
66
esac
67
67
} &&
68
- complete -F _adb adb
68
+ complete -F _comp_cmd_adb adb
69
69
70
70
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated on Linux. Upstream completion is
4
4
# available in util-linux >= 2.23, use that instead.
5
5
6
- _cal ()
6
+ _comp_cmd_cal ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
34
34
_count_args
35
35
(( args == 1 )) && COMPREPLY=($( compgen -W ' {1..12}' -- " $cur " ) )
36
36
} &&
37
- complete -F _cal cal ncal
37
+ complete -F _comp_cmd_cal cal ncal
38
38
39
39
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated on Linux systems whose chsh is from
4
4
# util-linux. Upstream completion is in util-linux >= 2.23, use that instead.
5
5
6
- _chsh ()
6
+ _comp_cmd_chsh ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
@@ -40,6 +40,6 @@ _chsh()
40
40
fi
41
41
42
42
} &&
43
- complete -F _chsh chsh
43
+ complete -F _comp_cmd_chsh chsh
44
44
45
45
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated on Linux. Upstream completion is
4
4
# available in util-linux >= 2.23, use that instead.
5
5
6
- _dmesg ()
6
+ _comp_cmd_dmesg ()
7
7
{
8
8
[[ $OSTYPE == * solaris* ]] && return # no args there
9
9
@@ -29,6 +29,6 @@ _dmesg()
29
29
compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
30
30
) )
31
31
} &&
32
- complete -F _dmesg dmesg
32
+ complete -F _comp_cmd_dmesg dmesg
33
33
34
34
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated on Linux. Upstream completion is
4
4
# available in util-linux >= 2.23, use that instead.
5
5
6
- _eject ()
6
+ _comp_cmd_eject ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
@@ -28,6 +28,6 @@ _eject()
28
28
_cd_devices
29
29
_dvd_devices
30
30
} &&
31
- complete -F _eject eject
31
+ complete -F _comp_cmd_eject eject
32
32
33
33
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated on Linux. Upstream completion is
4
4
# available in util-linux >= 2.23, use that instead.
5
5
6
- _hexdump ()
6
+ _comp_cmd_hexdump ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
@@ -27,6 +27,6 @@ _hexdump()
27
27
28
28
_filedir
29
29
} &&
30
- complete -F _hexdump hexdump hd
30
+ complete -F _comp_cmd_hexdump hexdump hd
31
31
32
32
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated. Upstream completion is available in
4
4
# util-linux >= 2.23, use that instead.
5
5
6
- _hwclock ()
6
+ _comp_cmd_hwclock ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
@@ -21,6 +21,6 @@ _hwclock()
21
21
COMPREPLY=(
22
22
$( PATH=" $PATH :/sbin" compgen -W ' $(_parse_help "$1")' -- " $cur " ) )
23
23
} &&
24
- complete -F _hwclock hwclock
24
+ complete -F _comp_cmd_hwclock hwclock
25
25
26
26
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated. Upstream completion is available in
4
4
# util-linux >= 2.23, use that instead.
5
5
6
- _ionice ()
6
+ _comp_cmd_ionice ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
@@ -55,6 +55,6 @@ _ionice()
55
55
return
56
56
fi
57
57
} &&
58
- complete -F _ionice ionice
58
+ complete -F _comp_cmd_ionice ionice
59
59
60
60
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated on Linux. Upstream completion is
4
4
# available in util-linux >= 2.23, use that instead.
5
5
6
- _look ()
6
+ _comp_cmd_look ()
7
7
{
8
8
local cur prev words cword comp_args
9
9
_comp_initialize -- " $@ " || return
@@ -12,6 +12,6 @@ _look()
12
12
COMPREPLY=($( compgen -W ' $(look "$cur" 2>/dev/null)' -- " $cur " ) )
13
13
fi
14
14
} &&
15
- complete -F _look -o default look
15
+ complete -F _comp_cmd_look -o default look
16
16
17
17
# ex: filetype=sh
Original file line number Diff line number Diff line change 3
3
# Use of this file is deprecated. Upstream completion is available in
4
4
# mock > 1.1.0, use that instead.
5
5
6
- _mock ()
6
+ _comp_cmd_mock ()
7
7
{
8
8
local cur prev words cword split comp_args
9
9
_comp_initialize -s -- " $@ " || return
@@ -64,6 +64,6 @@ _mock()
64
64
_filedir ' @(?(no)src.r|s)pm'
65
65
fi
66
66
} &&
67
- complete -F _mock mock
67
+ complete -F _comp_cmd_mock mock
68
68
69
69
# ex: filetype=sh
You can’t perform that action at this time.
0 commit comments