Skip to content

Commit d5b8f07

Browse files
authored
Update README.md
1 parent ae642ca commit d5b8f07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,18 @@ After a `submit` command, results are sent to Boot.dev's servers, and then webso
3939

4040
## How to add Go's bin directory to your PATH
4141

42-
When you run [go install](https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies), Go installs the binary into `$HOME/go/bin` by default. Add the bin directory to your PATH by modifying your shell's configuration file. For example, if you're using bash on Ubuntu, you can run the following command to add a line to your `~/.bashrc` file:
42+
When you run [go install](https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies), Go installs the binary into `$HOME/go/bin` by default. Add the bin directory to your PATH by modifying your shell's configuration file. For example, if you're using bash on Ubuntu (e.g. WSL), you can run the following command to add a line to your `~/.bashrc` file:
4343

4444
```bash
4545
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc
4646
```
4747

48+
Or if you're on Mac OS using zsh:
49+
50+
```bash
51+
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.zshrc
52+
```
53+
4854
Next, reload your shell configuration:
4955

5056
```bash

0 commit comments

Comments
 (0)