aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-04-03 02:33:45 -0400
committertdro <tdro@users.noreply.github.com>2022-04-03 02:33:45 -0400
commit008f05dbdbcf306b2ef0dbc835a0647256111ddd (patch)
tree65156c440dd88ded09a9cd7466da875db950bdaa
parent49a7433cd7b6e4cd434d22cec8730a086906f345 (diff)
downloaddotfiles-008f05dbdbcf306b2ef0dbc835a0647256111ddd.tar.gz
dotfiles-008f05dbdbcf306b2ef0dbc835a0647256111ddd.tar.bz2
dotfiles-008f05dbdbcf306b2ef0dbc835a0647256111ddd.zip
.vim/vimrc: Dry run make files
-rw-r--r--.vim/vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index d48c16a..1ab0478 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -309,6 +309,7 @@ augroup AutoCommands
autocmd BufWritePost quotes,*.fortune exe 'Notify(''strfile ' . expand('%') . ''')'
autocmd BufWritePost *.doas exe 'Notify(''doas -C ' . expand('%') . ' 2>&1 && printf "doas OK: ' . expand('%') . '"'')'
autocmd BufWritePost Xresources exe 'Notify(''xrdb ~/.config/X11/Xresources ' . '2>&1 && printf "Reloading Xresources: ' . expand('%') . '"'')'
+ autocmd BufWritePost Makefile exe 'Notify(''make --dry-run --warn-undefined-variables ' . '2>&1 && printf "\nMake OK: ' . expand('%') . '"'')'
autocmd BufWritePost *.nft exe 'Notify(''doas nft --check --file ' . expand('%') . ' 2>&1 && printf "nftables OK: ' . expand('%') . '"'')'
autocmd BufWritePost *.desktop exe 'Notify(''desktop-file-validate ' . expand('%') . ' 2>&1 && printf "Deskop File OK: ' . expand('%') . '"'')'
autocmd BufWritePost *.service exe 'Notify(''systemd-analyze verify --user ' . expand('%') . ' 2>&1 && printf "Systemd Service File OK: ' . expand('%') . '"'')'