Last active
April 9, 2024 23:13
-
-
Save yuripourre/3d49e2e99924774d057ad0012159e390 to your computer and use it in GitHub Desktop.
Mac Setup
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
setopt interactivecomments | |
# The command above allows you to have bash style comments | |
# Create .zshrc file | |
touch ~/.zshrc | |
# Enable git tab for branch completion | |
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc | |
# Install Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
echo "export PATH=/opt/homebrew/bin:\$PATH" >> ~/.zshrc | |
# Install MacPorts | |
xcode-select --install | |
curl https://github.com/macports/macports-base/releases/download/v2.8.1/MacPorts-2.8.1-13-Ventura.pkg | |
sudo installer -pkg MacPorts-2.8.1-13-Ventura.pkg -target / | |
# Setup Requirements | |
sudo port load dbus | |
sudo port select --set python3 python311 | |
# Install Gedit | |
yes | sudo port install gedit | |
# Installing Meld | |
yes | sudo port install meld | |
git config --global merge.tool meld | |
# Install Git | |
arch -arm64 brew install git | |
#git config --global user.name "Yuri Pourre" | |
#git config --global user.email "[email protected]" | |
# Install NVM | |
arch -arm64 brew update | |
arch -arm64 brew install nvm | |
mkdir ~/.nvm | |
echo "export NVM_DIR=~/.nvm\nsource \$(brew --prefix nvm)/nvm.sh" >> ~/.zshrc | |
# Azure command line tools | |
arch -arm64 brew install azure-cli | |
# Installing docker runtime (colima) | |
arch -arm64 brew install colima | |
colima start | |
# Create a link so testcontainers works and it works similar to docker | |
sudo ln -s $HOME/.colima/docker.sock /var/run/docker.sock | |
# Installing Java OpenJDK 17 | |
arch -arm64 brew install openjdk@17 | |
echo "export JAVA_HOME==`/usr/libexec/java_home -v 17`" >> ~/.zshrc | |
source ~/.zshrc |
Author
yuripourre
commented
Dec 7, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment