make: Add -j/--jobs completion.
This commit is contained in:
parent
0202ac4e2a
commit
d54db3507d
@ -24,6 +24,10 @@ _make()
|
|||||||
--eval|-D|-V|-x)
|
--eval|-D|-V|-x)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
--jobs|-j)
|
||||||
|
COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
$split && return 0
|
$split && return 0
|
||||||
|
@ -36,4 +36,10 @@ assert_complete_dir "" "make " $dir $test
|
|||||||
sync_after_int
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "make -j "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
teardown
|
teardown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user