diff options
Diffstat (limited to 'Completion/User/_make')
-rw-r--r-- | Completion/User/_make | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/User/_make b/Completion/User/_make index e9ee7979f..4c6095e95 100644 --- a/Completion/User/_make +++ b/Completion/User/_make @@ -1,6 +1,6 @@ #compdef make gmake pmake -local prev="$words[CURRENT-1]" file ret=1 +local prev="$words[CURRENT-1]" file ret=1 expl if [[ "$prev" = -[CI] ]]; then _files -/ @@ -18,7 +18,8 @@ else file='' fi + _description expl 'make target' [[ -n "$file" ]] && - compadd - $(awk '/^[a-zA-Z0-9][^\/ ]+:/ {print $1}' FS=: $file) && ret=0 + compadd "$expl[@]" - $(awk '/^[a-zA-Z0-9][^\/ ]+:/ {print $1}' FS=: $file) && ret=0 (( ret )) && { compset -P 1 '*\='; _files } fi |