congqiao / macos-guide

Getting Started with macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started with macOS

Essentials

Homebrew

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Add the following lines to the beginning of /etc/paths:

/usr/local/sbin
/usr/local/bin

Z shell

Install Z shell:

brew install zsh

Install Oh-My-Zsh:

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

Edit ~/.zshrc:

# ...
plugins=(brew osx)
# ...
alias bu='brew update && brew upgrade && brew cleanup -s && brew prune'
alias reset-launchpad='defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock'
alias purge-ds-store='sudo find / -name .DS_Store -delete && killall Finder'

Add the following line to the end of /etc/shells:

/usr/local/bin/zsh

Change your shell:

chsh -s /usr/local/bin/zsh

Development

git

Install git:

brew install git

Visual Studio Code

Download and install Visual Studio Code.

Python

Install Python:

brew install python3

or if you absolutely need to use the old Python 2:

brew install python

JavaScript

Install Node.js:

brew install node

Install Yarn:

brew install yarn

About

Getting Started with macOS