diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2003-07-09 14:06:14 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-07-09 14:06:14 +0000 |
| commit | 48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2 (patch) | |
| tree | 8c61390024d5453852f63fe9445e387b3fe0eb95 /Completion/Unix/Command/_nice | |
| parent | Rebrand as 4.1.1-dev-1 (diff) | |
| download | zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.tar zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.tar.gz zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.tar.bz2 zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.tar.lz zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.tar.xz zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.tar.zst zsh-48dbd4a65c740f3b7f3776e49ab61dbffb8e35b2.zip | |
18839/18840: Completion for nice
Diffstat (limited to 'Completion/Unix/Command/_nice')
| -rw-r--r-- | Completion/Unix/Command/_nice | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_nice b/Completion/Unix/Command/_nice new file mode 100644 index 000000000..f2f688368 --- /dev/null +++ b/Completion/Unix/Command/_nice @@ -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 |
