diff options
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Command/.distfiles | 14 | ||||
-rw-r--r-- | Completion/Zsh/Command/_limit | 9 | ||||
-rw-r--r-- | Completion/Zsh/Type/_limits | 2 |
3 files changed, 17 insertions, 8 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 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 |