Simplify installation

This commit is contained in:
Julian Ospald 2018-10-20 09:46:58 +08:00
parent de13482713
commit eb79e39074
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -24,15 +24,13 @@ Just place the `ghcup` shell script into your `PATH` anywhere.
E.g.: E.g.:
```sh ```sh
mkdir -p ~/.local/bin ( mkdir -p ~/.ghcup/bin && curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > ~/.ghcup/bin/ghcup && chmod +x ~/.ghcup/bin/ghcup) && echo "Success"
curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > ~/.local/bin/ghcup
chmod +x ~/.local/bin/ghcup
``` ```
Then adjust your `PATH` in `~/.bashrc` (or similar, depending on your shell) like so, for example: Then adjust your `PATH` in `~/.bashrc` (or similar, depending on your shell) like so, for example:
```sh ```sh
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$PATH" export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
``` ```
## Usage ## Usage