about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_limit
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-11-01 15:41:40 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-11-01 15:41:40 +0000
commit6a75b3c0c59a8d6fc6718acaaffada3503611dd8 (patch)
tree569135ed437a633f9965481ea82b5d446b5cd269 /Completion/Zsh/Command/_limit
parentaf711a4dfc57fff491fe8ca3cdeb47e020f2e7c3 (diff)
downloadzsh-6a75b3c0c59a8d6fc6718acaaffada3503611dd8.tar.gz
zsh-6a75b3c0c59a8d6fc6718acaaffada3503611dd8.tar.xz
zsh-6a75b3c0c59a8d6fc6718acaaffada3503611dd8.zip
16197: `limit' accepts `unlimited'.
Diffstat (limited to 'Completion/Zsh/Command/_limit')
-rw-r--r--Completion/Zsh/Command/_limit9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_limit b/Completion/Zsh/Command/_limit
new file mode 100644
index 000000000..ba384f980
--- /dev/null
+++ b/Completion/Zsh/Command/_limit
@@ -0,0 +1,9 @@
+#compdef limit
+
+if ! ((CURRENT % 2)); then
+    _limits
+elif [[ $PREFIX = u* ]]; then
+    compadd unlimited
+else
+    _message "number and scaling factor"
+fi