mirror of
https://github.com/zsh-users/zsh
synced 2024-09-16 06:30:26 +00:00
18839/18840: Completion for nice
This commit is contained in:
parent
ab24c6e37c
commit
48dbd4a65c
|
@ -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.
|
||||
|
||||
|
|
14
Completion/Unix/Command/_nice
Normal file
14
Completion/Unix/Command/_nice
Normal 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
|
|
@ -1,4 +1,4 @@
|
|||
#compdef - nohup nice eval time rusage noglob nocorrect exec
|
||||
#compdef - nohup eval time rusage noglob nocorrect exec
|
||||
|
||||
shift words
|
||||
(( CURRENT-- ))
|
||||
|
|
Loading…
Reference in a new issue