summaryrefslogtreecommitdiff
path: root/completions/make
diff options
context:
space:
mode:
Diffstat (limited to 'completions/make')
-rw-r--r--completions/make6
1 files changed, 6 insertions, 0 deletions
diff --git a/completions/make b/completions/make
index 399c4b00..1aec3489 100644
--- a/completions/make
+++ b/completions/make
@@ -37,6 +37,12 @@ _make()
[[ $opts ]] || opts="$( _parse_usage "$1" )"
COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
+ elif [[ $cur == *=* ]]; then
+ prev=${cur%%=*}
+ cur=${cur#*=}
+ local diropt
+ [[ ${prev,,} == *dir?(ectory) ]] && diropt=-d
+ _filedir $diropt
else
# before we check for makefiles, see if a path was specified
# with -C/--directory