I feel like an idiot because I've installed this before on macOS and OSX but for some reason I can't see what I'm doing wrong. Please help!!! I've created a directory, ~/go
, which will be my workspace. When I run go env
from my home directory I get zsh: command not found: go
and I know it's because of the following files. What is wrong in my configuration?
~/.bash_profile:
export PATH=$PATH:/usr/local/go/bin
~/.zshrc:
export PATH=$PATH:/usr/local/go/bin
~/.zshrc
(or launched a new zsh instance) before runninggo env
? – Honeyhoneybee/usr/local/go/bin/go env
? – Honeyhoneybeeecho $PATH
, does it actually contain/usr/local/go/bin
? – Herl