From 32ac8c5bcb9e9a21d60313d28c494bebca39a89c Mon Sep 17 00:00:00 2001 From: dana Date: Sat, 2 Jun 2018 18:07:35 -0500 Subject: 42919: new shuf and uptime completions --- Completion/Unix/Command/_uptime | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Completion/Unix/Command/_uptime (limited to 'Completion/Unix/Command/_uptime') diff --git a/Completion/Unix/Command/_uptime b/Completion/Unix/Command/_uptime new file mode 100644 index 000000000..58b4d991b --- /dev/null +++ b/Completion/Unix/Command/_uptime @@ -0,0 +1,26 @@ +#compdef uptime guptime + +local variant + +_pick_variant -r variant procps=procps gnu='Free Soft' unix --version + +case $variant in + procps) + _arguments -s -S : \ + '(: -)'{-h,--help}'[display help information]' \ + '(: -)'{-V,--version}'[display version information]' \ + + '(excl)' \ + {-p,--pretty}'[display uptime in pretty format]' \ + {-s,--since}'[display date/time of system boot]' + return + ;; + gnu) + _arguments -S : \ + '(: -)--help[display help information]' \ + '(: -)--version[display version information]' \ + '1:utmp/wtmp file:_files' + return + ;; + # *BSD, Darwin, Solaris, BusyBox + *) _message 'no more arguments'; return 1 ;; +esac -- cgit 1.4.1