Created
March 9, 2018 21:11
-
-
Save Rican7/03eda46b52d519555df75eeb94e6b14f to your computer and use it in GitHub Desktop.
Bash - Add multiple GOPATH bin locations to your PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Go language path | |
export GOPATH="$HOME/development/go:$GOPATH" | |
gopath_bins="${GOPATH//:/\/bin:}/bin" | |
export PATH="$gopath_bins:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment