18839/18840: Completion for nice

This commit is contained in:
Peter Stephenson 2003-07-09 14:06:14 +00:00
parent ab24c6e37c
commit 48dbd4a65c
3 changed files with 18 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2003-07-09 Peter Stephenson <pws@csr.com>
* 18839, modified c.f. 18840: Completion/Unix/Command/_nice,
Completion/Zsh/Command/_precommand: Completion for nice.
* unposted: Config/version.mk: rebrand as 4.1.1-dev-1 to
avoid confusion with release version.

View file

@ -0,0 +1,14 @@
#compdef nice
shift words
(( CURRENT-- ))
if [[ $CURRENT -gt 1 && $words[1] = [-+](-|)<-> ]]; then
shift words
(( CURRENT -- ))
elif [[ $CURRENT -gt 2 && $words[1] = -n ]]; then
shift 2 words
(( CURRENT -= 2 ))
fi
_normal

View file

@ -1,4 +1,4 @@
#compdef - nohup nice eval time rusage noglob nocorrect exec
#compdef - nohup eval time rusage noglob nocorrect exec
shift words
(( CURRENT-- ))