From bbaa248774bd2a6250f76b5c5df508028dc4fce7 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 18 Aug 2016 15:16:56 -0400 Subject: [PATCH] Added run() --- shells/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shells/zshrc b/shells/zshrc index ac2ac78..72ab329 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -76,6 +76,11 @@ dedir(){ smt(){ sudo multitail "/var/log/$1" } +run(){ + test -f "${1:r}" && rm "${1:r}" + echo "Building..." >&2 + gcc -Wall -std=c99 "${1:r}.c" -o "${1:r}" && (echo "Running..." >&2;./"${1:r}") +} alias mt='multitail' alias tg='telegram-cli -N -W' alias perm='stat -c "%a %n"'