Added run()

This commit is contained in:
Austen Adler 2016-08-18 15:16:56 -04:00
parent 17b3955645
commit bbaa248774
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -76,6 +76,11 @@ dedir(){
smt(){ smt(){
sudo multitail "/var/log/$1" 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 mt='multitail'
alias tg='telegram-cli -N -W' alias tg='telegram-cli -N -W'
alias perm='stat -c "%a %n"' alias perm='stat -c "%a %n"'