File tree 23 files changed +23
-69
lines changed
23 files changed +23
-69
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ _comp_cmd_cal()
24
24
esac
25
25
26
26
if [[ $cur == -* ]]; then
27
- COMPREPLY=($(
28
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
29
- ) )
27
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
30
28
return
31
29
fi
32
30
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ _comp_cmd_chsh()
32
32
esac
33
33
34
34
if [[ $cur == -* ]]; then
35
- COMPREPLY=($(
36
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
37
- ) )
35
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
38
36
else
39
37
_allowed_users
40
38
fi
Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ _comp_cmd_dmesg()
25
25
;;
26
26
esac
27
27
28
- COMPREPLY=($(
29
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
30
- ) )
28
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
31
29
} &&
32
30
complete -F _comp_cmd_dmesg dmesg
33
31
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ _comp_cmd_hexdump()
19
19
esac
20
20
21
21
if [[ $cur == -* ]]; then
22
- COMPREPLY=($(
23
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
24
- ) )
22
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
25
23
return
26
24
fi
27
25
Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ _comp_cmd_arp()
29
29
esac
30
30
31
31
if [[ $cur == -* ]]; then
32
- COMPREPLY=($(
33
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
34
- ) )
32
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
35
33
return
36
34
fi
37
35
Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ _comp_cmd_chmod()
22
22
23
23
# shellcheck disable=SC2053
24
24
if [[ $cur == -* && $cur != $modearg ]]; then
25
- COMPREPLY=($(
26
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
27
- ) )
25
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
28
26
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
29
27
return
30
28
fi
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ _comp_cmd_grpck()
15
15
esac
16
16
17
17
if [[ $cur == -* ]]; then
18
- COMPREPLY=($(
19
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
20
- ) )
18
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
21
19
return
22
20
fi
23
21
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ _comp_cmd_hostname()
18
18
esac
19
19
20
20
[[ $cur == -* ]] &&
21
- COMPREPLY=($(
22
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
23
- ) )
21
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
24
22
} &&
25
23
complete -F _comp_cmd_hostname hostname
26
24
Original file line number Diff line number Diff line change @@ -59,9 +59,7 @@ _comp_cmd_ifstat()
59
59
[[ $was_split ]] && return
60
60
61
61
if [[ $cur == -* ]]; then
62
- COMPREPLY=($(
63
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
64
- ) )
62
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
65
63
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
66
64
return
67
65
fi
Original file line number Diff line number Diff line change @@ -173,9 +173,7 @@ _comp_cmd_make()
173
173
[[ $was_split ]] && return
174
174
175
175
if [[ $cur == -* ]]; then
176
- COMPREPLY=($(
177
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
178
- ) )
176
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
179
177
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
180
178
elif [[ $cur == * = * ]]; then
181
179
prev=${cur%% =* }
Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ _comp_cmd_man()
46
46
[[ $was_split ]] && return
47
47
48
48
if [[ $cur == -* ]]; then
49
- COMPREPLY=($(
50
- compgen -W ' $(_parse_help "$1" -h || _parse_usage "$1")' -- " $cur "
51
- ) )
49
+ _comp_compgen_help " $1 " -h || _comp_compgen_usage " $1 "
52
50
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
53
51
return
54
52
fi
Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ _comp_cmd_modinfo()
28
28
[[ $was_split ]] && return
29
29
30
30
if [[ $cur == -* ]]; then
31
- COMPREPLY=($(
32
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
33
- ) )
31
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
34
32
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
35
33
return
36
34
fi
Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ _comp_cmd_ntpdate()
25
25
esac
26
26
27
27
if [[ $cur == -* ]]; then
28
- COMPREPLY=($(
29
- compgen -W ' $(_parse_help "$1" -h || _parse_usage "$1")' -- " $cur "
30
- ) )
28
+ _comp_compgen_help " $1 " -h || _comp_compgen_usage " $1 "
31
29
else
32
30
_known_hosts_real -- " $cur "
33
31
fi
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ _comp_cmd_passwd()
15
15
esac
16
16
17
17
if [[ $cur == -* ]]; then
18
- COMPREPLY=($(
19
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
20
- ) )
18
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
21
19
return
22
20
fi
23
21
Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ _comp_cmd_ping()
58
58
esac
59
59
60
60
if [[ $cur == -* ]]; then
61
- COMPREPLY=($(
62
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
63
- ) )
61
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
64
62
return
65
63
fi
66
64
Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ _comp_cmd_pwck()
6
6
_comp_initialize -- " $@ " || return
7
7
8
8
if [[ $cur == -* ]]; then
9
- COMPREPLY=($(
10
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
11
- ) )
9
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
12
10
return
13
11
fi
14
12
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ _comp_cmd_quota__user_or_group()
18
18
19
19
_comp_cmd_quota__parse_help ()
20
20
{
21
- COMPREPLY=($(
22
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
23
- ) )
21
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
24
22
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
25
23
}
26
24
Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ _comp_cmd_sudo()
45
45
[[ $was_split ]] && return
46
46
47
47
if [[ $cur == -* ]]; then
48
- COMPREPLY=($(
49
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
50
- ) )
48
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
51
49
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
52
50
return
53
51
fi
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ _comp_cmd_sysctl()
18
18
esac
19
19
20
20
if [[ $cur == -* ]]; then
21
- COMPREPLY=($(
22
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
23
- ) )
21
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
24
22
else
25
23
local suffix=
26
24
[[ $prev == -w ]] && suffix=" ="
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ _comp_cmd_timeout()
32
32
[[ $was_split ]] && return
33
33
34
34
if [[ $cur == -* ]]; then
35
- COMPREPLY=($(
36
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
37
- ) )
35
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
38
36
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
39
37
fi
40
38
} &&
Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ _comp_cmd_tracepath()
12
12
esac
13
13
14
14
if [[ $cur == -* ]]; then
15
- COMPREPLY=($(
16
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
17
- ) )
15
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
18
16
return
19
17
fi
20
18
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ _comp_cmd_vipw()
17
17
;;
18
18
esac
19
19
20
- COMPREPLY=($(
21
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
22
- ) )
20
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
23
21
} &&
24
22
complete -F _comp_cmd_vipw vipw vigr
25
23
Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ _comp_cmd_xmlwf()
21
21
esac
22
22
23
23
if [[ $cur == -* ]]; then
24
- COMPREPLY=($(
25
- compgen -W ' $(_parse_help "$1" || _parse_usage "$1")' -- " $cur "
26
- ) )
24
+ _comp_compgen_help " $1 " || _comp_compgen_usage " $1 "
27
25
return
28
26
fi
29
27
You can’t perform that action at this time.
0 commit comments