1
0
Fork 0

more path escaping

This commit is contained in:
Luca Bilke 2022-08-17 17:15:41 +02:00
parent 91f5fb486d
commit a89d69004a
2 changed files with 3 additions and 4 deletions

View file

@ -80,9 +80,9 @@ vim.api.nvim_create_autocmd("BufWritePost", {
command = "!cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid -f dwmblocks }"
})
vim.api.nvim_create_autocmd("BufLeave", {
vim.api.nvim_create_autocmd({ "BufDelete", "VimLeave" }, {
pattern = "*.tex",
command = "!texclear %"
command = "!texclear \"%:p\""
})
-- Lualine

View file

@ -9,8 +9,7 @@ case "$1" in
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)"
rm -rdf "$dir/_minted-$(basename -- "$base")"
;;
*) printf "Give .tex file as argument.\\n" ;;
esac