From b568b1f13cd36c702c65d7217ed40eebab17a92a Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 17 Dec 2021 20:30:55 +0100 Subject: Add go lang instructions and install goenv --- .bash_profile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.bash_profile') 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" -- cgit v1.2.3