more path escaping
This commit is contained in:
parent
91f5fb486d
commit
a89d69004a
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue