Created
January 15, 2015 09:00
-
-
Save eagafonov/a103e55c9377e0bc2fae to your computer and use it in GitHub Desktop.
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
#!/bin/sh -x | |
# 1. Add to ~/.bashrc[[ -f ".goenv" ]] && source .goenv | |
# 2. Put symbol link to this file named .goenv in some folder | |
# 3. start bash in this folder | |
# Path where GO is installed | |
GO_INSTALL_PATH=/opt/go | |
HERE=$(pwd) | |
GPROOT=$HERE | |
GOPATH=$HERE:$GO_INSTALL_PATH | |
PATH=$PATH:$GO_INSTALL_PATH/bin:$GPROOT/bin | |
export PATH | |
export GOPATH | |
export GPROOT | |
# Debian magic stuff | |
debian_chroot=GO:$(basename $HERE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment