delete texclear

This commit is contained in:
Luke Smith 2025-03-02 16:52:56 +01:00
parent 2ca3f80dd3
commit 7d26250657
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -1,9 +0,0 @@
#!/bin/sh
# Clears the build files of a LaTeX/XeLaTeX build.
# I have vim run this file whenever I exit a .tex file.
[ "${1##*.}" = "tex" ] && {
find "$(dirname "${1}")" -regex '.*\(_minted.*\|.*\.\(4tc\|xref\|tmp\|pyc\|pyg\|pyo\|fls\|vrb\|fdb_latexmk\|bak\|swp\|aux\|log\|synctex\(busy\)\|lof\|lot\|maf\|idx\|mtc\|mtc0\|nav\|out\|snm\|toc\|bcf\|run\.xml\|synctex\.gz\|blg\|bbl\)\)' -delete
} || printf "Provide a .tex file.\n"