diff --git a/.vimrc b/.vimrc index 3b50ce9e..32fd5cd8 100644 --- a/.vimrc +++ b/.vimrc @@ -224,10 +224,10 @@ if has("autocmd") " TODO: groovy/java CLI linters au BufNew,BufRead *.groovy,*.gvy,*.gy,*.gsh nmap ;l :w:!groovyc "%" - au BufNew,BufRead .bash*,*.sh,*.ksh nmap ;l :w:!clear; cd "$(dirname "%")" && shellcheck -x -Calways "%" \| more -R + au BufNew,BufRead .bash*,*.sh,*.ksh nmap ;l :w:!clear; cd "$(dirname "%")" && shellcheck -x -Calways "$(basename "%")" \| more -R " for scripts that don't end in .sh like Google Cloud Shell's .customize_environment " doesn't trigger on window switching - au FileType sh nmap ;l :w:!clear; cd "$(dirname "%")" && shellcheck -x -Calways "%" \| more -R + au FileType sh nmap ;l :w:!clear; cd "$(dirname "%")" && shellcheck -x -Calways "$(basename "%")" \| more -R " these tools are in the https://github.com/HariSekhon/Python-DevOps-Tools repo which should be downloaded, run 'make' and add to $PATH au BufNew,BufRead *.csv nmap ;l :w:!clear; validate_csv.py "%"