diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2018-04-09 00:42:15 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2018-04-09 00:42:15 +0200 |
commit | fe36c1ada77f817dbeeeed5ee70c7ba08eeb1d18 (patch) | |
tree | 0229967da5e73bd29a2d6014c847509b361f3631 /Completion/Unix/Command/_shutdown | |
parent | 1521c7d0f7e607b789564e819173e228e9475137 (diff) | |
parent | f9e9dce5443f323b340303596406f9d3ce11d23a (diff) | |
download | zsh-fe36c1ada77f817dbeeeed5ee70c7ba08eeb1d18.tar.gz zsh-fe36c1ada77f817dbeeeed5ee70c7ba08eeb1d18.zip |
Merge tag 'zsh-5.5' and hence branch 'upstream' into branch 'debian'
Release 5.5 of zsh
Diffstat (limited to 'Completion/Unix/Command/_shutdown')
-rw-r--r-- | Completion/Unix/Command/_shutdown | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_shutdown b/Completion/Unix/Command/_shutdown index 1ac6e61ba..9726182a0 100644 --- a/Completion/Unix/Command/_shutdown +++ b/Completion/Unix/Command/_shutdown @@ -17,10 +17,9 @@ if [[ -d /etc/systemd ]]; then fi case $OSTYPE in - *bsd*|dragonfly*|linux*) + *bsd*|dragonfly*|linux*|darwin*) args=( '-h[halt the system after shutdown]' - '-p[turn off power after shutdown]' '-r[reboot the system]' '-k[kick everybody off]' '-n[prevent file system cache from being flushed]' @@ -28,6 +27,11 @@ case $OSTYPE in '*:warning message' ) ;| + *bsd*|dragonfly*|linux*) + args=( + '-p[turn off power after shutdown]' + ) + ;| (net|open)bsd*) args+=( '-d[cause system to perform a dump]' @@ -48,6 +52,13 @@ case $OSTYPE in '-D[prevent shutdown from detaching from the tty]' ) ;; + darwin*) + args+=( + '-o[execute halt or reboot instead of sending a signal to launchd]' + '-s[put the system to sleep]' + '-u[with -h, wait 5 minutes before removing power]' + ) + ;; solaris2.<11->) args=( '(-i)-r[reboot]' ) ;& solaris*) args+=( |