aboutsummaryrefslogtreecommitdiff
path: root/zsh-completion/_openrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh-completion/_openrc')
-rw-r--r--zsh-completion/_openrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/zsh-completion/_openrc b/zsh-completion/_openrc
new file mode 100644
index 00000000..3336b44b
--- /dev/null
+++ b/zsh-completion/_openrc
@@ -0,0 +1,7 @@
+#compdef openrc
+
+if (( CURRENT == 2 )); then
+ _values "runlevels" $(rc-status --list)
+fi
+
+# vim: set et sw=2 ts=2 ft=zsh: