From 9efa402567bd19510070c52c0a2837fcbee7253f Mon Sep 17 00:00:00 2001 From: spolisar <22416070+spolisar@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:36:58 -0400 Subject: [PATCH 1/2] docs: add go bin troubleshooting for fish shell --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17dcc3f..557b752 100644 --- a/README.md +++ b/README.md @@ -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 ``` + ```fish + # For fish + fish_add_path $HOME/go/bin + ``` + ```sh - # For macOS + # For macOS/zsh echo 'export PATH=$PATH:$HOME/.local/opt/go/bin' >> ~/.zshrc # Next, reload your shell configuration source ~/.zshrc From 85094afeaf787b3d1fa56d5973576e59933a8cec Mon Sep 17 00:00:00 2001 From: spolisar <22416070+spolisar@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:50:34 -0400 Subject: [PATCH 2/2] add second go/bin code block for fish, switch to sh block language --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 557b752..3d5e83d 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ After installing Golang, _open a new shell session_ and run `go version` to make source ~/.bashrc ``` - ```fish + ```sh # For fish fish_add_path $HOME/go/bin ``` @@ -88,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