From 92ae5d57fa6f671400191a395fb53cfe52b97258 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 28 Jun 2020 19:47:12 -0700 Subject: [PATCH] Updated Contrib (markdown) --- Contrib.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Contrib.md b/Contrib.md index 21549bb..96c2aa8 100644 --- a/Contrib.md +++ b/Contrib.md @@ -25,6 +25,17 @@ This works on Docker for Mac as well as a linux system running docker. I have t No modification of my editor settings was needed for this to integrate (I checked Vim through syntastic and VSCode). +### Windows Git-bash Docker wrapper script + +[@pletnes says](https://github.com/koalaman/shellcheck/issues/1978): + +>I'd like to have a documented how-to for beginners on windows. Personally, I use docker in git-bash. I don't know if this is a "common setup". I came up with this first attempt, which could go into the wiki + +```sh +#!/bin/bash +exec docker run --rm -v "$(cygpath -aw .):/mnt" koalaman/shellcheck:stable "$@" +``` + ### Emacs auto-fix script By [@matthewpersico](https://github.com/matthewpersico)