[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-532-gd54db35
Ville Skyttä
ville.skytta at iki.fi
Wed Nov 9 16:36:24 UTC 2011
The following commit has been merged in the master branch:
commit d54db3507dc79624ea5db1a031fac677d4c0dabe
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Nov 9 18:36:08 2011 +0200
make: Add -j/--jobs completion.
diff --git a/completions/make b/completions/make
index d56e196..2c9a2c5 100644
--- a/completions/make
+++ b/completions/make
@@ -24,6 +24,10 @@ _make()
--eval|-D|-V|-x)
return 0
;;
+ --jobs|-j)
+ COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
+ return 0
+ ;;
esac
$split && return 0
diff --git a/test/lib/completions/make.exp b/test/lib/completions/make.exp
index f20ace1..977485d 100644
--- a/test/lib/completions/make.exp
+++ b/test/lib/completions/make.exp
@@ -36,4 +36,10 @@ assert_complete_dir "" "make " $dir $test
sync_after_int
+assert_complete_any "make -j "
+
+
+sync_after_int
+
+
teardown
--
bash-completion
More information about the Bash-completion-commits
mailing list