aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shellrc.d/dev7
1 files changed, 7 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index d14211b..7815658 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -7,3 +7,10 @@ memcheck() {
massif() {
valgrind --tool=massif "$@"
}
+
+mbuild() {
+ if [ ! -d "build" ]; then
+ meson setup build
+ fi
+ meson compile -C build "$@"
+}