diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/_rtcwake | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-upstream/2.11.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/_rtcwake')
-rw-r--r-- | completions/_rtcwake | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/_rtcwake b/completions/_rtcwake index 43d264c9..4ca452d9 100644 --- a/completions/_rtcwake +++ b/completions/_rtcwake @@ -9,24 +9,24 @@ _rtcwake() _init_completion -s || return case "$prev" in - --help|-h|--version|-V|--seconds|-s|--time|-t) + --help | -h | --version | -V | --seconds | -s | --time | -t) return ;; - --mode|-m) - COMPREPLY=( $(compgen -W 'standby mem disk on no off' -- "$cur") ) + --mode | -m) + COMPREPLY=($(compgen -W 'standby mem disk on no off' -- "$cur")) return ;; - --device|-d) - COMPREPLY=( $(command ls -d /dev/rtc?* 2>/dev/null) ) - COMPREPLY=( $(compgen -W '${COMPREPLY[@]#/dev/}' -- "$cur") ) + --device | -d) + COMPREPLY=($(command ls -d /dev/rtc?* 2>/dev/null)) + COMPREPLY=($(compgen -W '${COMPREPLY[@]#/dev/}' -- "$cur")) return ;; esac $split && return - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) } && -complete -F _rtcwake rtcwake + complete -F _rtcwake rtcwake # ex: filetype=sh |