diff options
| author | Daniel Hahler <git@thequod.de> | 2018-01-25 22:38:20 +0100 |
|---|---|---|
| committer | Daniel Hahler <git@thequod.de> | 2018-02-11 20:09:30 +0100 |
| commit | c18fe510f4321210ddb450cdfa08fbf2bae8a580 (patch) | |
| tree | d5af08089014757834a4b1fc82fdea480a918255 /Completion/Unix | |
| parent | unposted: _subversion: Support subcommands with hyphens in their names, such ... (diff) | |
| download | zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.tar zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.tar.gz zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.tar.bz2 zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.tar.lz zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.tar.xz zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.tar.zst zsh-c18fe510f4321210ddb450cdfa08fbf2bae8a580.zip | |
42327: _make: complete _files
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?
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Command/_make | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
