summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-10-18 14:30:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-10-18 14:30:06 +0100
commit6a6bf2d17a1e569f14e68ea370dea506a57e653f (patch)
treeb44e786820c03ba025854b49447c97418158c794 /bashrc
parentAdd df wrapper (diff)
downloadutil-6a6bf2d17a1e569f14e68ea370dea506a57e653f.tar.bz2
util-6a6bf2d17a1e569f14e68ea370dea506a57e653f.tar.xz
util-6a6bf2d17a1e569f14e68ea370dea506a57e653f.zip
Add valgrind wrapper
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 16c8851..c69b2b8 100644
--- a/bashrc
+++ b/bashrc
@@ -54,6 +54,14 @@ alias df="/bin/df -hT"
title() {
echo -ne "\033]0;$@\007"
}
+vg() {
+ valgrind \
+ --show-leak-kinds=all \
+ --suppressions=$HOME/dev/valgrind.suppressions \
+ --leak-check=full \
+ --log-file=/var/tmp/vg.log \
+ $@
+}
build() {
title "Build in progress"
CCACHE_BASEDIR=$(git root) nice -n5 b2 -j$CORES $@