Skip to main content

Hide the "go" folder from the home directory

Published 1 min readMarkdown

We're just gonna point the go path to a hidden folder in the home directory using zshrc variables.

mkdir ~/.go

nano ~/.zshrc

add this to the bottom

GOPATH=/home/nathan/.go

export GOPATH

PATH=$PATH:$GOPATH/bin

save it

log out and back in

Thanks, it was a good read, bookmarked, and followed!

More from this blog