Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active March 15, 2024 01:35
Show Gist options
  • Save hardyscc/bae5a00dced6dd265cf757c00aa2b445 to your computer and use it in GitHub Desktop.
Save hardyscc/bae5a00dced6dd265cf757c00aa2b445 to your computer and use it in GitHub Desktop.
MacOS Setup

install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

install fish & oh-my-fish

brew install fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish

setup fish & oh-my-fish

fish_vi_key_bindings
omf install foreign-env
touch ~/.zalias
echo 'source ~/.zalias' >> ~/.zprofile
echo 'source ~/.zalias' >> ~/.config/fish/conf.d/omf.fish
echo 'fenv source ~/.zprofile' >> ~/.config/fish/conf.d/omf.fish

install fisher, nvm & node

curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install jorgebucaran/nvm.fish
nvm install lts
set --universal nvm_default_version lts

install fzf

brew install fzf
/opt/homebrew/opt/fzf/install

setup vim

echo "syntax on" >> ~/.vimrc
echo "set clipboard=unnamed" >> ~/.vimrc

install kubectl

brew install kubernetes-cli
brew install helm
echo "alias k='kubectl'" >> ~/.zalias
echo "alias kn='kubectl config set-context --current --namespace'" >> ~/.zalias
echo "alias kc='kubectl config use-context'" >> ~/.zalias
echo "alias kcl='kubectl config get-contexts -o name'" >> ~/.zalias
echo "alias kcd='kubectl config delete-context'" >> ~/.zalias

install openjdk

brew tap homebrew/cask-versions
brew install --cask temurin17
echo 'export JAVA_HOME=$(/usr/libexec/java_home -v 17)' >> ~/.zprofile

install XCode

Install xcode from App Store

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
sudo gem install cocoapods

Fix for Version Conflict:

# The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.3. Try installing it with `gem install activesupport -v 6.1.7.3` and then running the current command again
sudo gem install activesupport -v 6.1.7.3
sudo gem install cocoapods

install flutter

brew install --cask flutter
brew install --cask android-studio

install Android SDK & Command-line Tools

  • Open Android Studio follow instructions
  • Install Android SDK Command-line Tools
    • SDK Manager > Preferences > System Settings > Android SDK > SDK Tools > Android SDK Command-line Tools
flutter doctor --android-licenses

echo 'export ANDROID_HOME=~/Library/Android/sdk' >> ~/.zprofile
echo 'export PATH=$PATH:$ANDROID_HOME/emulator' >> ~/.zprofile
echo 'export PATH=$PATH:$ANDROID_HOME/tools' >> ~/.zprofile
echo 'export PATH=$PATH:$ANDROID_HOME/tools/bin' >> ~/.zprofile
echo 'export PATH=$PATH:$ANDROID_HOME/platform-tools' >> ~/.zprofile

additional

brew install --cask google-chrome
brew install --cask visual-studio-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment