Browse Source

Cleanup

main
Yiğit Çolakoğlu 4 years ago
parent
commit
7adea2edc9
4 changed files with 23 additions and 8 deletions
  1. +0
    -8
      .gitignore
  2. +1
    -0
      local/bin/.gitignore
  3. +6
    -0
      local/bin/status-bar/nextcloud
  4. +16
    -0
      local/bin/texclear

+ 0
- 8
.gitignore View File

@ -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

+ 1
- 0
local/bin/.gitignore View File

@ -57,3 +57,4 @@
!welcome.sh
!ytfzf_dmenu
!zaread
!texclear

+ 6
- 0
local/bin/status-bar/nextcloud View File

@ -0,0 +1,6 @@
#!/bin/sh
nsync=$(cat ~/.cache/nextcloud-track)
echo -n "^c#88c0d0^מּ ^d^ $nsync"

+ 16
- 0
local/bin/texclear View File

@ -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

Loading…
Cancel
Save