summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/.distfiles1
-rw-r--r--Completion/Zsh/Command/_ttyctl4
-rw-r--r--Completion/Zsh/Command/_ulimit17
-rw-r--r--Completion/Zsh/Command/_vared12
4 files changed, 34 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/.distfiles b/Completion/Zsh/Command/.distfiles
index 66e1babd6..7f6a3d0d8 100644
--- a/Completion/Zsh/Command/.distfiles
+++ b/Completion/Zsh/Command/.distfiles
@@ -6,4 +6,5 @@ _builtin     _emulate     _precommand  _setopt      _unsetopt    _zle
 _cd          _enable      _print       _source      _wait        _zmodload
 _command     _fc          _prompt      _stat        _which       _zpty
 _compdef     _hash        _read        _trap        _zcompile    _zstyle
+_ttyctl      _ulimit      _vared
 '
diff --git a/Completion/Zsh/Command/_ttyctl b/Completion/Zsh/Command/_ttyctl
new file mode 100644
index 000000000..45527b07d
--- /dev/null
+++ b/Completion/Zsh/Command/_ttyctl
@@ -0,0 +1,4 @@
+#compdef ttyctl
+
+_arguments '(-u)-f[freeze terminal settings]' \
+           '(-f)-u[unfreeze terminal settings]'
diff --git a/Completion/Zsh/Command/_ulimit b/Completion/Zsh/Command/_ulimit
new file mode 100644
index 000000000..22a829aea
--- /dev/null
+++ b/Completion/Zsh/Command/_ulimit
@@ -0,0 +1,17 @@
+#compdef ulimit
+
+[[ $PREFIX = u* ]] && compadd unlimited && return 0
+
+_arguments -s \
+  '-H[set hard limits]' \
+  '-S[set soft and hard limits (with -H)]' \
+  '(-H -S -c -d -f -l -m -n -s -t *)-a[list all current resource limits]' \
+  '-c[core dump size limit]:max core dump size (512-byte blocks)' \
+  '-d[maximum size of data segment]:maximum size of data segment (K-bytes)' \
+  '-f[size of largest file allowed]:size of largest file allowed (512-byte blocks)' \
+  '-l[maximum size of locked in memory]:maximum size of locked in memory (K-bytes)' \
+  '-m[maximum size of physical memory]:maximum size of physical memory (K-bytes)' \
+  '-n[maximum no. of open file descriptors]:maximum no. of open file descriptors' \
+  '-s[stack size limit]:stack size limit (K-bytes)' \
+  '-t[maximum cpu time per process]:maximum cpu time per process (seconds)' \
+  '*:size of largest file allowed'
diff --git a/Completion/Zsh/Command/_vared b/Completion/Zsh/Command/_vared
new file mode 100644
index 000000000..bb31cc129
--- /dev/null
+++ b/Completion/Zsh/Command/_vared
@@ -0,0 +1,12 @@
+#compdef vared
+
+_arguments -s -A "-*" \
+  '(-a)-A[edit associative array]' \
+  '(-A)-a[edit array parameter]' \
+  "-c[create parameter or change type]" \
+  '-p+[specify left prompt]:prompt' \
+  '-r+[specify right prompt]:right prompt' \
+  '-h[allow access to history]' \
+  '-e[exit on EOF (^D)]' \
+  '1:parameter spec:_vars'
+