about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_builtin11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_builtin b/Completion/Zsh/Command/_builtin
new file mode 100644
index 000000000..9fb6acf7b
--- /dev/null
+++ b/Completion/Zsh/Command/_builtin
@@ -0,0 +1,11 @@
+#compdef builtin
+
+if (( $CURRENT > 2 )); then
+  shift words
+  (( CURRENT -- ))
+  _normal
+else
+  local expl
+
+  _wanted commands expl 'builtin command' compadd "$@" -k builtins
+fi