From 5d90cfe1d2aa7474d3c0eceb9cb97ec473a53230 Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Tue, 13 Nov 2007 01:38:56 +0000 Subject: Merge of 23226 : "nice -n<->" wasn't handled. --- Completion/Unix/Command/_nice | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Completion/Unix/Command/_nice (limited to 'Completion/Unix') diff --git a/Completion/Unix/Command/_nice b/Completion/Unix/Command/_nice new file mode 100644 index 000000000..29070697f --- /dev/null +++ b/Completion/Unix/Command/_nice @@ -0,0 +1,14 @@ +#compdef nice + +shift words +(( CURRENT-- )) + +if [[ $CURRENT -gt 1 && $words[1] = ([-+](-|)|-n)<-> ]]; then + shift words + (( CURRENT -- )) +elif [[ $CURRENT -gt 2 && $words[1] = -n ]]; then + shift 2 words + (( CURRENT -= 2 )) +fi + +_normal -- cgit 1.4.1