aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-11-05 15:02:12 +0100
committerKarel Kočí <cynerd@email.cz>2024-11-05 15:02:12 +0100
commitb2f1bd289e9bae405f95ba0aa2478da45c07e713 (patch)
treef29de0d99135b243e22c2890d2fde2bfc26f78a9 /shellrc.d
parent699d10813cd26bec34a7e128c18d9198150f38e8 (diff)
downloadshellrc-master.tar.gz
shellrc-master.tar.bz2
shellrc-master.zip
dev: add bmmakeHEADmaster
This is just a combination of mmake and bmake.
Diffstat (limited to 'shellrc.d')
-rw-r--r--shellrc.d/dev5
1 files changed, 5 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index 74d692b..b6dbab8 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -61,6 +61,11 @@ if command -v bear >/dev/null; then
bear --output build/compile_commands.json --append -- make "$@"
}
+ bmmake() {
+ mkdir -p build
+ bear --output build/compile_commands.json --append -- make "-j$(($(nproc) * 2))" "-l$(nproc)" "$@"
+ }
+
alias mbmake='bmake -j$(($(nproc) * 2)) -l$(nproc)'
fi