Skip to content

Instantly share code, notes, and snippets.

@Rican7
Created March 9, 2018 21:11
Show Gist options
  • Save Rican7/03eda46b52d519555df75eeb94e6b14f to your computer and use it in GitHub Desktop.
Save Rican7/03eda46b52d519555df75eeb94e6b14f to your computer and use it in GitHub Desktop.
Bash - Add multiple GOPATH bin locations to your PATH
#!/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