From a4bbc226f2f9654a03fca6a096ecccb7b80cec96 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Tue, 13 Oct 2020 08:07:01 +0200 Subject: [PATCH] Added shellcheck with vim integration --- .vimrc | 6 ++++++ salt/pillars/packages.sls | 1 + 2 files changed, 7 insertions(+) diff --git a/.vimrc b/.vimrc index 96688c6..5033c74 100644 --- a/.vimrc +++ b/.vimrc @@ -144,6 +144,12 @@ if has("autocmd") " Set filetype tab settings autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab + + " ShellCheck settings + autocmd FileType sh set makeprg=shellcheck\ -f\ gcc\ % + autocmd FileType sh au BufWritePost * :silent make | redraw! + autocmd FileType sh au QuickFixCmdPost [^l]* nested cwindow + autocmd FileType sh au QuickFixCmdPost l* nested lwindow endif diff --git a/salt/pillars/packages.sls b/salt/pillars/packages.sls index a00c054..48a5972 100644 --- a/salt/pillars/packages.sls +++ b/salt/pillars/packages.sls @@ -17,3 +17,4 @@ packages: pattern:devel_basis: { status: installed } wireguard-tools: { status: installed } myspell-sv_SE: { status: installed } + ShellCheck: { status: installed }