From 328b9457389bda7c54138db6e908de1c6e1acc3f Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 20 Oct 2021 16:20:11 +0300 Subject: texclear: format --- .local/bin/texclear | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.local/bin/texclear') diff --git a/.local/bin/texclear b/.local/bin/texclear index f6a5062..9a32d70 100755 --- a/.local/bin/texclear +++ b/.local/bin/texclear @@ -4,11 +4,11 @@ # I have vim run this file whenever I exit a .tex file. case "$1" in - *.tex) - 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 ;; - *) printf "Give .tex file as argument.\\n" ;; + *.tex) + 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 ;; + *) printf "Give .tex file as argument.\\n" ;; esac -- cgit v1.2.3-70-g09d2