File tree Expand file tree Collapse file tree 23 files changed +23
-69
lines changed Expand file tree Collapse file tree 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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
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 || _comp_compgen_usage
179
177
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
180
178
elif [[ $cur == * = * ]]; then
181
179
prev=${cur%% =* }
You can’t perform that action at this time.
0 commit comments