Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] shutdown(1): add "-c" for _shutdown completion



Signed-off-by: Eitan Adler <lists@xxxxxxxxxxxxxx>
---
 Completion/Unix/Command/_shutdown | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Completion/Unix/Command/_shutdown b/Completion/Unix/Command/_shutdown
index 4119502fb..02df4cd0a 100644
--- a/Completion/Unix/Command/_shutdown
+++ b/Completion/Unix/Command/_shutdown
@@ -42,6 +42,11 @@ case $OSTYPE in
     args+=(
       '-o[execute halt or reboot instead of sending a signal to init]'
     )
+  ;|
+  freebsd*)
+    args+=(
+      '-c[power cycle the system instead of halting if possible]'
+    )
   ;;
   netbsd*)
     args+=(
-- 
2.17.1



Messages sorted by: Reverse Date, Date, Thread, Author