mirror of
https://github.com/KevinMidboe/chsh.git
synced 2025-10-29 12:30:13 +00:00
Add golang to brew pkgs & go env vars to .profile
This commit is contained in:
5
.profile
5
.profile
@@ -15,3 +15,8 @@ export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
|
|||||||
# PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"
|
# PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"
|
||||||
# export PATH
|
# export PATH
|
||||||
|
|
||||||
|
# Setting go environment
|
||||||
|
export GOPATH=$HOME/dev/go
|
||||||
|
export GOROOT="$(brew --prefix golang)/libexec"
|
||||||
|
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ move_profile_file () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_packages_brew () {
|
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"
|
echo "Installing ${#packages[@]} packages from brew"
|
||||||
|
|
||||||
brew install --quiet "${packages[@]}"
|
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"
|
echo "Configurating fish shell"
|
||||||
configure_fish
|
configure_fish
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user