aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shellrc.d/dev9
1 files changed, 9 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index 148ef24..5206eb5 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -1,5 +1,7 @@
# vim: ft=sh:
+if command -v valgrind >/dev/null; then
+
memcheck() {
valgrind --track-fds=yes --leak-check=full --track-origins=yes "$@"
}
@@ -8,6 +10,11 @@ massif() {
valgrind --tool=massif "$@"
}
+fi
+
+
+if command -v meson >/dev/null; then
+
_meson_setup() {
if [ ! -f "build/build.ninja" ]; then
meson setup build
@@ -28,3 +35,5 @@ mdist() {
_meson_setup
meson dist -C build --formats xztar,gztar,zip "$@"
}
+
+fi