From ea9a77d312462a5b1ed15b49c66a928af3620641 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Sun, 20 Mar 2016 23:21:49 +0100 Subject: [PATCH] Add support for plural nouns in bash completion --- bash_completions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash_completions.go b/bash_completions.go index 61fd88bb..60336f3c 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -189,6 +189,8 @@ __handle_noun() if __contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() + elif __contains_word "${words[c]%s}" "${must_have_one_noun[@]}"; then + must_have_one_noun=() fi nouns+=("${words[c]}")