Last active
April 5, 2021 01:52
-
-
Save jcunanan05/2689aff84faaaffc7b9b2e990f9c04c8 to your computer and use it in GitHub Desktop.
Apple fresh install commands
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
# 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