Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,19 @@ After installing Golang, _open a new shell session_ and run `go version` to make
You can ensure that the program exists by attempting to run `go` using its full filepath. For example, if you think it's in `~/.local/opt/go/bin`, you can run `~/.local/opt/go/bin/go version`. If that works, then you just need to add `~/.local/opt/go/bin` to your `PATH` and reload your shell:

```sh
# For Linux/WSL
# For Linux/WSL/bash
echo 'export PATH=$PATH:$HOME/.local/opt/go/bin' >> ~/.bashrc
# Next, reload your shell configuration
source ~/.bashrc
```

```sh
# For macOS
# For fish
fish_add_path $HOME/go/bin
```

```sh
# For macOS/zsh
echo 'export PATH=$PATH:$HOME/.local/opt/go/bin' >> ~/.zshrc
# Next, reload your shell configuration
source ~/.zshrc
Expand All @@ -83,14 +88,19 @@ Run `bootdev --version` on your command line to make sure the installation worke
If you're getting a "command not found" error for `bootdev help`, it's most likely because the directory containing the `bootdev` program isn't in your [`PATH`](https://opensource.com/article/17/6/set-path-linux). You need to add the directory to your `PATH` by modifying your shell's configuration file. You probably need to add `$HOME/go/bin` (the default `GOBIN` directory where `go` installs programs) to your `PATH`:

```sh
# For Linux/WSL
# For Linux/WSL/bash
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc
# Next, reload your shell configuration
source ~/.bashrc
```

```sh
# For macOS
# For fish
fish_add_path $HOME/go/bin
```

```sh
# For macOS/zsh
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.zshrc
# Next, reload your shell configuration
source ~/.zshrc
Expand Down