Skip to content

Instantly share code, notes, and snippets.

@saemu
Last active January 25, 2023 20:14
Show Gist options
  • Save saemu/f3e309477846aa5bfed49b542f761066 to your computer and use it in GitHub Desktop.
Save saemu/f3e309477846aa5bfed49b542f761066 to your computer and use it in GitHub Desktop.
MacOS Development Setup

Hints to setup MacOS for Development

Basic Setup

TL;DR

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
brew install iterm2
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -L https://iterm2.com/shell_integration/zsh -o ~/.iterm2_shell_integration.zsh
cat << EOF >> ~/.zshrc
test -f ~/.iterm2_shell_integration.zsh && source ~/.iterm2_shell_integration.zsh
EOF

Java Development

Mainly following the articles listed below will guide you through the setup process:

TL;DR

brew install openjdk maven gradle jenv
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
cat << EOF >> ~/.zshrc
test -x $(command -v jenv) && eval "$(jenv init -)"
EOF
exec $0
jenv add /Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home/

Python Development

Mainly following the articles listed below will guide you through the setup process:

TL;DR

brew install pyenv
cat << EOF >> ~/.zshrc
test -x $(command -v pyenv) && eval $(pyenv init --path); eval "$(pyenv init -)"
EOF
exec $0
pyenv install 3.9.0
pyenv global 3.9.0

C++ Development

TL;DR

xcode-select --install
brew install cmake cppcheck conan ninja
conan profile new --detect default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment