Instructions for adding ShellCheck to PATH
This commit is contained in:
parent
f01e6e1a99
commit
3332eba9a0
13
README.md
13
README.md
|
@ -37,14 +37,21 @@ On Mac OS X with MacPorts (http://www.macports.org/):
|
||||||
|
|
||||||
port install hs-cabal-install
|
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
|
$ 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
|
$ which shellcheck
|
||||||
~/.cabal/bin/shellcheck
|
~/.cabal/bin/shellcheck
|
||||||
|
|
||||||
|
|
||||||
## Building with Make
|
## Building with Make
|
||||||
|
|
||||||
ShellCheck is written in Haskell, and requires GHC, Parsec3, JSON and
|
ShellCheck is written in Haskell, and requires GHC, Parsec3, JSON and
|
||||||
|
|
Loading…
Reference in New Issue