commit a249752711eb2cdf241c1aa433884a2d0539e13b parent ae07e1f42736f7acdce1410636f076e45c9d15b3 Author: Wim Dupont <wim@wimdupont.com> Date: Sat, 1 Jun 2024 14:20:54 +0200 added valgrind func Diffstat:
M | .bashrc | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.bashrc b/.bashrc @@ -50,7 +50,7 @@ function rssf(){ } function findstr(){ - grep -Rnw . -e "$1" + grep -Rn . -e "$1" } function vimis(){ @@ -72,6 +72,10 @@ function nkill(){ fi } +function leak(){ + gcc -g "$1.c" -o "$1" && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s "$1" +} + alias ls='ls --color=auto' alias ll='ls -l' alias weather='curl wttr.in'