From 6a75b3c0c59a8d6fc6718acaaffada3503611dd8 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 1 Nov 2001 15:41:40 +0000 Subject: 16197: `limit' accepts `unlimited'. --- Completion/Zsh/Command/.distfiles | 14 +++++++------- Completion/Zsh/Command/_limit | 9 +++++++++ Completion/Zsh/Type/_limits | 2 +- 3 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 Completion/Zsh/Command/_limit (limited to 'Completion/Zsh') 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 diff --git a/Completion/Zsh/Type/_limits b/Completion/Zsh/Type/_limits index 5dd2bffe5..232ce7e94 100644 --- a/Completion/Zsh/Type/_limits +++ b/Completion/Zsh/Type/_limits @@ -1,4 +1,4 @@ -#compdef limit unlimit +#compdef unlimit local expl -- cgit 1.4.1