diff --git a/.gitignore b/.gitignore index a28cc858..ad772590 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,5 @@ .gitsecret/keys/random_seed !*.secret -zsh/secret -mail/mbsyncrc -mail/msmtp/config -misc/spotifyd.conf -misc/wakatime.cfg -misc/nextcloud -misc/calcurse/caldav/config config/msmtp/config config/isync/mbsyncrc config/calcurse/caldav/config @@ -14,4 +7,3 @@ config/wakatime/wakatime.cfg config/zsh/secret config/nextcloud/nextcloud config/spotifyd/spotifyd.conf -config/wakatime/.wakatime.cfg diff --git a/local/bin/.gitignore b/local/bin/.gitignore index 5c1ad6f7..2734175a 100644 --- a/local/bin/.gitignore +++ b/local/bin/.gitignore @@ -57,3 +57,4 @@ !welcome.sh !ytfzf_dmenu !zaread +!texclear diff --git a/local/bin/status-bar/nextcloud b/local/bin/status-bar/nextcloud new file mode 100755 index 00000000..2709d442 --- /dev/null +++ b/local/bin/status-bar/nextcloud @@ -0,0 +1,6 @@ +#!/bin/sh + +nsync=$(cat ~/.cache/nextcloud-track) + +echo -n "^c#88c0d0^מּ ^d^ $nsync" + diff --git a/local/bin/texclear b/local/bin/texclear new file mode 100755 index 00000000..f38f7bef --- /dev/null +++ b/local/bin/texclear @@ -0,0 +1,16 @@ +#!/bin/sh + +# Clears the build files of a LaTeX/XeLaTeX build. +# 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|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 +