#!/bin/zsh use office/latex ##################################################################### MAIN() { local DIRECTORY=$(SCWRYPTS__GET_REALPATH ".") [ $1 ] && DIRECTORY="$(dirname "$(LATEX__GET_MAIN_FILENAME "$1")")" [ $DIRECTORY ] && [ -d $DIRECTORY ] \ || FAIL 1 'unable to parse valid directory' cd $DIRECTORY rm $(ls | grep '\.\(aux\)\|\(log\)\|\(pdf\)\|\(out\)\|\(dvi\)$') SUCCESS "cleaned up latex artifacts in '$DIRECTORY'" }