Add golang to brew pkgs & go env vars to .profile

This commit is contained in:
2023-03-26 14:56:49 +02:00
parent 9a27a5c4de
commit b881418b33
2 changed files with 6 additions and 3 deletions

View File

@@ -15,3 +15,8 @@ export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"
# export PATH
# Setting go environment
export GOPATH=$HOME/dev/go
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"

View File

@@ -78,7 +78,7 @@ move_profile_file () {
}
install_packages_brew () {
declare -a packages=("cmake" "tree" "wget" "jq" "ripgrep" "watch" "tmux" "fish" "lua-language-server" "node@18" "gh")
declare -a packages=("cmake" "tree" "wget" "jq" "ripgrep" "watch" "tmux" "fish" "lua-language-server" "node@18" "golang" "gh")
echo "Installing ${#packages[@]} packages from brew"
brew install --quiet "${packages[@]}"
@@ -121,5 +121,3 @@ get_input_df_true "Move config files to $HOME/.config? (Y/n) " move_config_files
echo "Configurating fish shell"
configure_fish