From 3332eba9a0fac4d3f4728d221a4d9fb0f881567a Mon Sep 17 00:00:00 2001 From: John Albietz Date: Tue, 1 Apr 2014 14:26:03 -0700 Subject: [PATCH] Instructions for adding ShellCheck to PATH --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 147b113..0851ed8 100644 --- a/README.md +++ b/README.md @@ -37,14 +37,21 @@ On Mac OS X with MacPorts (http://www.macports.org/): port install hs-cabal-install -With cabal installed, cd to the shellcheck source directory and: +With cabal installed, cd to the ShellCheck source directory and: $ cabal install - ... + +This will install ShellCheck to your ~/.cabal/bin directory. + +Add the directory to your PATH (for bash, add this to your ~/.bashrc file): + + export PATH=$HOME/.cabal/bin:$PATH + +Verify that your PATH is set up correctly: + $ which shellcheck ~/.cabal/bin/shellcheck - ## Building with Make ShellCheck is written in Haskell, and requires GHC, Parsec3, JSON and