fish: Allow using make instead of bmake for pkgsrc
This commit is contained in:
parent
300eab47a3
commit
0647f973ac
2 changed files with 9 additions and 8 deletions
|
@ -1,8 +0,0 @@
|
||||||
# pkgsrc does not like MAKEFLAGS being set
|
|
||||||
function bmake
|
|
||||||
if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
|
|
||||||
env MAKEFLAGS= bmake $argv
|
|
||||||
else
|
|
||||||
command bmake $argv
|
|
||||||
end
|
|
||||||
end
|
|
9
config/fish/functions/make.fish
Normal file
9
config/fish/functions/make.fish
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Automatically use bmake instead of make when using pkgsrc
|
||||||
|
function make
|
||||||
|
if which bmake >/dev/null && string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
|
||||||
|
# pkgsrc does not like MAKEFLAGS including -j
|
||||||
|
env MAKEFLAGS= bmake $argv
|
||||||
|
else
|
||||||
|
command make $argv
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue