summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_renice
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-05-12 14:03:26 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-05-12 14:03:26 +0000
commit453df705675869123675ba399f08e92ca658aa2f (patch)
tree798f662aa7409f830c84f4bc8897d92f88fe57a6 /Completion/Unix/Command/_renice
parent18524: sepjoin !heap bug cause problem in vared (diff)
downloadzsh-453df705675869123675ba399f08e92ca658aa2f.tar
zsh-453df705675869123675ba399f08e92ca658aa2f.tar.gz
zsh-453df705675869123675ba399f08e92ca658aa2f.tar.bz2
zsh-453df705675869123675ba399f08e92ca658aa2f.tar.lz
zsh-453df705675869123675ba399f08e92ca658aa2f.tar.xz
zsh-453df705675869123675ba399f08e92ca658aa2f.tar.zst
zsh-453df705675869123675ba399f08e92ca658aa2f.zip
merge changes from 4.1
Diffstat (limited to 'Completion/Unix/Command/_renice')
-rw-r--r--Completion/Unix/Command/_renice21
1 files changed, 21 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_renice b/Completion/Unix/Command/_renice
new file mode 100644
index 000000000..256ef5694
--- /dev/null
+++ b/Completion/Unix/Command/_renice
@@ -0,0 +1,21 @@
+#compdef renice
+
+if [[ $CURRENT = 2 ]]; then
+ _message priority
+else
+ local opts ret=1
+ opts=(
+ '-g:interpret args as process group IDs'
+ '-u:interpret args as user names'
+ '-p:interpret args as process IDs'
+ )
+ _describe -o option opts && ret=0
+
+ case ${(v)words[(I)-?]} in
+ -g) _message 'process group ID' && ret=0 ;;
+ -u) _users && ret=0 ;;
+ *) _pids && ret=0;;
+ esac
+fi
+
+return ret