diff options
Diffstat (limited to 'shellrc.d/dev')
-rw-r--r-- | shellrc.d/dev | 5 |
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 |