Server IP : 51.89.169.208 / Your IP : 216.73.216.211 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/share/zsh/5.5.1/functions/ |
Upload File : |
#compdef shutdown local -a args if [[ -d /etc/systemd ]]; then _arguments \ '--help[display usage information]' \ '(-H --halt)'{-H,--halt}'[halt the machine]' \ '(-P --poweroff -h)'{-P,--poweroff,-h}'[power-off the machine (default)]' \ '(-r --reboot)'{-r,--reboot}'[reboot the machine]' \ "(--no-wall)-k[don't shutdown, just write wall message]" \ "(-k)--no-wall[don't send a wall message]" \ '-c[cancel pending shutdown]' \ '1: :_guard "^-*" "time (now/hh\:mm/+mins)"' \ '*:warning message' return fi case $OSTYPE in *bsd*|dragonfly*|linux*|darwin*) args=( '-h[halt the system after shutdown]' '-r[reboot the system]' '-k[kick everybody off]' '-n[prevent file system cache from being flushed]' '1: :_guard "^-*" "time (now/hh\:mm/+mins)"' '*:warning message' ) ;| *bsd*|dragonfly*|linux*) args=( '-p[turn off power after shutdown]' ) ;| (net|open)bsd*) args+=( '-d[cause system to perform a dump]' '-f[create /fastboot so that file systems will not be checked during the next boot]' ) ;| freebsd*|dragonfly*) args+=( '-o[execute halt or reboot instead of sending a signal to init]' ) ;; netbsd*) args+=( '-b[specify boot string to pass to reboot]:boot string' '-v[enable verbose console messages]' '-x[enable debug console messages]' '-z[silence some console messages]' '-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+=( '(-r)-i+[specify init-state]:init state:((0\:stop 1\:administrative s\:single\ user 5 6\:reboot))' '-y[pre-answer yes to confirmation question]' '-g+[specify grace period]:grace period (seconds) [60]' ) ;; esac _arguments $args