From 5d13deda4e6c16a155c0ebab4c0372d36b8be751 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 10 Nov 2008 15:28:41 +0000 Subject: add completion of globbing flags --- Completion/Unix/Type/_path_files | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_path_files') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 8924ece8e..2e9e943b5 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -21,7 +21,11 @@ if [[ ( -o bareglobqual && \ $PREFIX = (#b)((*[^\\]|)(\\\\)#"(#q")([^\)]#) \ ) && -z $compstate[quote] ]]; then compset -p ${#match[1]} - _globquals + if [[ -o extendedglob ]] && compset -P '\#'; then + _globflags + else + _globquals + fi return fi -- cgit 1.4.1