Merge pull request #172 from jbnicolai/master
Adds homebrew installation steps to README.
This commit is contained in:
commit
d9c622ae33
12
README.md
12
README.md
|
@ -18,6 +18,14 @@ The goals of ShellCheck are:
|
||||||
|
|
||||||
ShellCheck is written in Haskell, and requires at least 1 GB of RAM to compile.
|
ShellCheck is written in Haskell, and requires at least 1 GB of RAM to compile.
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
Instead of building from source shellcheck can be installed through your
|
||||||
|
systems package manager.
|
||||||
|
|
||||||
|
On OS X:
|
||||||
|
|
||||||
|
$ brew install shellscript
|
||||||
|
|
||||||
## Building with Cabal
|
## Building with Cabal
|
||||||
|
|
||||||
|
@ -45,14 +53,14 @@ Let cabal update itself, in case your distro version is outdated:
|
||||||
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.
|
This will install ShellCheck to your ~/.cabal/bin directory.
|
||||||
|
|
||||||
Add the directory to your PATH (for bash, add this to your ~/.bashrc file):
|
Add the directory to your PATH (for bash, add this to your ~/.bashrc file):
|
||||||
|
|
||||||
export PATH=$HOME/.cabal/bin:$PATH
|
export PATH=$HOME/.cabal/bin:$PATH
|
||||||
|
|
||||||
Verify that your PATH is set up correctly:
|
Verify that your PATH is set up correctly:
|
||||||
|
|
||||||
$ which shellcheck
|
$ which shellcheck
|
||||||
~/.cabal/bin/shellcheck
|
~/.cabal/bin/shellcheck
|
||||||
|
|
Loading…
Reference in New Issue