From 8f36b8feb83e2a75f39b9b2c28e25c310d1ffbbd Mon Sep 17 00:00:00 2001 From: "M. Yas. Davoodeh" <30480116+Davoodeh@users.noreply.github.com> Date: Mon, 8 Feb 2021 01:26:29 +0330 Subject: [PATCH] Add minted/pyg files to `texclear` (#865) --- .local/bin/texclear | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/texclear b/.local/bin/texclear index f6a5062..f38f7be 100755 --- a/.local/bin/texclear +++ b/.local/bin/texclear @@ -8,7 +8,9 @@ case "$1" in file=$(readlink -f "$1") dir=$(dirname "$file") base="${file%.*}" - find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(4tc|xref|tmp|pyc|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 ;; + find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(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 + rm -rdf "$dir/_minted-$(basename -- $base)" + ;; *) printf "Give .tex file as argument.\\n" ;; esac