[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-165-gf7240b8
Ville Skyttä
ville.skytta at iki.fi
Fri May 11 20:29:35 UTC 2012
The following commit has been merged in the master branch:
commit f7240b82a4d45f03b741f11b771fae17d3c1c713
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Fri May 11 23:28:57 2012 +0300
make: Add generic variable completion.
diff --git a/completions/make b/completions/make
index 399c4b0..1aec348 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
--
bash-completion
More information about the Bash-completion-commits
mailing list