From c18fe510f4321210ddb450cdfa08fbf2bae8a580 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 25 Jan 2018 22:38:20 +0100 Subject: 42327: _make: complete _files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The use case is completing files that are actual targets, generated using $(wildcard …). Q: Could this be made to only complete files if make targets and vars are empty? --- Completion/Unix/Command/_make | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_make') diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make index 890ad1c83..1da865ed0 100644 --- a/Completion/Unix/Command/_make +++ b/Completion/Unix/Command/_make @@ -289,7 +289,8 @@ _make() { else _alternative \ 'targets:make target:compadd -Q -a TARGETS' \ - 'variables:make variable:compadd -S = -F keys -k VARIABLES' && ret=0 + 'variables:make variable:compadd -S = -F keys -k VARIABLES' \ + '*:file:_files' && ret=0 fi esac -- cgit 1.4.1