From cecb64075c6574ca86a6417c7e612c1491bb22ec Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 14 Dec 2020 21:41:38 -0500 Subject: .vimrc: Quote entire notify echo message --- .vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index be1573f..c2d220a 100644 --- a/.vimrc +++ b/.vimrc @@ -310,10 +310,10 @@ augroup AutoCommands autocmd FileType nix autocmd! BufWritePost silent call NixCheck() autocmd FileType elixir autocmd! BufWritePost :call ElixirFormat() autocmd FileType css autocmd! BufWritePost silent !notify-send "$(prettier --write --parser css % 2>&1)" - autocmd FileType rust autocmd! BufWritePost silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" - autocmd FileType c autocmd! BufWritePost silent !notify-send "$(clang-format -i % 2>&1 && echo 'clang-format OK:' %)" - autocmd FileType go autocmd! BufWritePost silent !notify-send "$(gofmt -w -s -e % 2>&1 && go vet % 2>&1 && echo 'gofmt OK:' %)" - autocmd FileType awk autocmd! BufWritePost silent !notify-send "$(awk -g -f % 2>&1 && awk -o- -f % | sponge % && echo 'awk OK:' %)" + autocmd FileType rust autocmd! BufWritePost silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK: %')" + autocmd FileType c autocmd! BufWritePost silent !notify-send "$(clang-format -i % 2>&1 && echo 'clang-format OK: %')" + autocmd FileType go autocmd! BufWritePost silent !notify-send "$(gofmt -w -s -e % 2>&1 && go vet % 2>&1 && echo 'gofmt OK: %')" + autocmd FileType awk autocmd! BufWritePost silent !notify-send "$(awk -g -f % 2>&1 && awk -o- -f % | sponge % && echo 'awk OK: %')" autocmd FileType yaml autocmd! BufWritePost silent !notify-send "$(yaml round-trip --indent 2 --save % 2>&1 && yamllint -s % 2>&1 && echo 'yaml OK: %')" " File type function under cursor lookups. -- cgit v1.2.3