use shfmt if available

Mon, 16 Sep 2019 21:36:29 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 16 Sep 2019 21:36:29 -0400
changeset 788
f8da8d4ff16a
parent 787
fc7e6eaf6a91
child 789
2d470b528b53

use shfmt if available

.vim/ftplugin/sh.vim file | annotate | diff | comparison | revisions
new file mode 100644
--- /dev/null
+++ b/.vim/ftplugin/sh.vim
@@ -0,0 +1,3 @@
+if executable('shfmt')
+  let &l:equalprg = "shfmt -i " . &shiftwidth
+endif

mercurial