diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-11-01 15:41:40 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-11-01 15:41:40 +0000 |
commit | 6a75b3c0c59a8d6fc6718acaaffada3503611dd8 (patch) | |
tree | 569135ed437a633f9965481ea82b5d446b5cd269 /Completion/Zsh/Command | |
parent | af711a4dfc57fff491fe8ca3cdeb47e020f2e7c3 (diff) | |
download | zsh-6a75b3c0c59a8d6fc6718acaaffada3503611dd8.tar.gz zsh-6a75b3c0c59a8d6fc6718acaaffada3503611dd8.tar.xz zsh-6a75b3c0c59a8d6fc6718acaaffada3503611dd8.zip |
16197: `limit' accepts `unlimited'.
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r-- | Completion/Zsh/Command/.distfiles | 14 | ||||
-rw-r--r-- | Completion/Zsh/Command/_limit | 9 |
2 files changed, 16 insertions, 7 deletions
diff --git a/Completion/Zsh/Command/.distfiles b/Completion/Zsh/Command/.distfiles index 4e75e0e3d..a3762d14a 100644 --- a/Completion/Zsh/Command/.distfiles +++ b/Completion/Zsh/Command/.distfiles @@ -1,10 +1,10 @@ DISTFILES_SRC=' .distfiles -_autoload _disable _kill _sched _typeset _zed -_bindkey _echotc _mere _set _unhash _zftp -_builtin _emulate _precommand _setopt _unsetopt _zle -_cd _enable _print _source _wait _zmodload -_command _fc _prompt _stat _which _zpty -_compdef _hash _read _trap _zcompile _zstyle -_echoti _ttyctl _ulimit _vared _alias _jobs_builtin +_alias _disable _jobs_builtin _read _ttyctl _which _zstyle +_autoload _echotc _kill _sched _typeset _zcompile +_bindkey _echoti _limit _set _ulimit _zed +_builtin _emulate _mere _setopt _unhash _zftp +_cd _enable _precommand _source _unsetopt _zle +_command _fc _print _stat _vared _zmodload +_compdef _hash _prompt _trap _wait _zpty ' 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 |