summaryrefslogtreecommitdiff
path: root/completions/_rtcwake
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_rtcwake')
-rw-r--r--completions/_rtcwake16
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