summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-12-17 20:30:55 +0100
committerAhmed Abdelhalim <[email protected]>2021-12-17 20:32:09 +0100
commitb568b1f13cd36c702c65d7217ed40eebab17a92a (patch)
tree48a764550c772f2e2bbf1a82c14469cde895c7cb /.bash_profile
parent727b7434f01c721b1306b5de66a4f4f0898b862e (diff)
Add go lang instructions and install goenv
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile9
1 files changed, 9 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
index 31aab5c..c04a8b3 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -67,6 +67,15 @@ if command -v pyenv 1>/dev/null 2>&1; then
export PATH="$HOME/.local/bin:$PATH"
fi
+# ==== GO config
+if [ -d $HOME/.goenv ]; then
+ export GOENV_ROOT="$HOME/.goenv"
+ export PATH="$GOENV_ROOT/bin:$PATH"
+ eval "$(goenv init -)"
+ export PATH="$GOROOT/bin:$PATH"
+ export PATH="$PATH:$GOPATH/bin"
+fi
+
# ==== Rust config
if [ -f $HOME/.cargo/env ]; then
source "$HOME/.cargo/env"