From 2d241d0ff9f26f75d5923d896bd30c61b189b099 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 13 Nov 2003 15:51:23 +0000 Subject: merge changes from 4.1 --- Completion/Unix/Command/_nice | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Completion/Unix/Command/_nice (limited to 'Completion/Unix/Command/_nice') 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 -- cgit 1.4.1