Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Apple fresh install commands
# prevent photos app from launching, just change to NO if you change your mind
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES
# show hidden files, if you want to hide it, just set to false.
defaults write com.apple.Finder AppleShowAllFiles true
# install xcode command line tools
# https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_macOS_10.13_for_Xcode_10.1/Command_Line_Tools_macOS_10.13_for_Xcode_10.1.dmg
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# zsh
brew install zsh
# install ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# fix dependencies warning on oh my zsh
# https://stackoverflow.com/a/61433333, basically, on your .zshrc, put this code at the very top.
# ZSH_DISABLE_COMPFIX="true"
# ohmyzsh favorite theme
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
# install fira code retina
# set your vscode to fira code
# https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions
# set your vs code to iterm
# https://stackoverflow.com/questions/29957456/change-default-terminal-app-in-visual-studio-code-on-mac
# install node version manager using zsh plugin
# https://github.com/lukechilds/zsh-nvm
# install node lts
nvm install --lts
# or install node 12 lts nvm install --lts=erbium
# backup your drive before proceeding
# download xcode 10.1 if you are on high sierra
# https://xcodereleases.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment