Created
March 9, 2017 19:26
-
-
Save pajlada/acaf8e53b21364a785397cd75922467a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if [[ -n "${CURRENT_ACTIVATED_SCRIPT+1}" ]]; then | |
echo "already activated" | |
return | |
fi | |
export OLD_GOPATH="${GOPATH}" | |
export GOPATH="/home/pajbot/go" | |
export OLD_PS1="${PS1}" | |
export PS1="(pb) ${PS1}" | |
export CURRENT_ACTIVATED_SCRIPT="pb-go" |
This file contains hidden or 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
if [[ ! -n "${CURRENT_ACTIVATED_SCRIPT+1}" ]]; then | |
echo "not activated. call source activate yet" | |
return | |
fi | |
export GOPATH="${OLD_GOPATH}" | |
unset OLD_GOPATH | |
export PS1="${OLD_PS1}" | |
unset OLD_PS1 | |
unset CURRENT_ACTIVATED_SCRIPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment