WhatToDoAfterGettingANewMac

Notes to record what to do after getting a new macbook.

Setup

  1. iTerm Download & install.

  2. zsh

# install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

### zsh-autosuggestions ###
# clone the repository
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions

# add to the ~/.zshrc
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

# make it work
source ~/.zshrc

### zsh-synax-highlighting ###
# clone the resposity
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting

# add to plugins in .zshrc
plugins=( [plugins...] zsh-syntax-highlighting)

# make it work
source ~/.zshrc

### history & z plugins ###
# add to plugins in .zshrc
plugins=( [plugins...] history z)

# make it work
source ~/.zshrc
  1. ShadowSocksR

I don't know.

  1. Homebrew Install

  2. ProxyChains

# install proxychains4
brew install proxychains-ng

# check the port that socks5 use in ~/.ShadowsocksX-NG/gfwlist.js
# check the head of the file

# add config to proxychains4
vi /usr/local/etc/proxychains.conf

# add the follow line to the end of the file
# and remember to comment out the socks4 config
socks5  127.0.0.1 1086 # the port that shadowsocks use, based on the shadowsocks in your computer

# usage
# add proxychains4 before the command you type
proxychains4 git clone ...

Add alias:

# add to ~/.zshrc
alias pc='proxychains4'

# make it work
source ~/.zshrc
  1. nvm
brew install nvm
  1. node
# install
nvm install node

# use
nvm use node
  1. yarn
brew install yarn
  1. VSCode Download & install.

  2. SSH Key

# create folder
mkdir .ssh

# generate key pair
cd ~/.ssh
ssh-keygen -t rsa -C "youremail@email.com"

# use the public key
cd ~/.ssh
cat id_rsa.pub
  1. Docker
brew install docker
  1. postman Download & install.

  2. Charles Download & install.