Mac Setup List

The following list is hint for setup Mac. Continuing adding.

iTerm2

We are going to be spending a lot of time on command-line. So it is a good idea to use a better tool. iTerm2 is the choice.

Download : iTerm2
Install : Drag and drop iTerm app into Appllactions folder

We like to use colorful command-line. Download from iTerm2 Color Schemes.I’d like to clone all the schemes, and choice one the like best.

To enable color in iTerm2, add the following lines in .bash_profile under ~.

1
2
3
4
5
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1

# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color

Homebrew

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

Git

I tred a lot of time to download Git from Git-SCM, but never successed. So I changed to use homebrew to install git instead.

1
brew install git

NPM (Nodejs)

NPM cannot install itself, it can be installed by Nodejs.

Hexo

I use Hexo to setup my Blog, and using GitHub to store my blog.

1
npm install hexo -g

For I am using Git for this blog, so need to use hexo git deploy toolkit.

1
npm install hexo-deployer-git --save

and then setup _config.yml in deploy block

1
2
3
4
deploy:
type: git
repo: https://github.com/guyuanershi/guyuanershi.github.io.git
branch: master

Fira Code

I’d like to use Fira Code, it gives some nice symbol, such as >=,
Download from here

  • Mac:
    Open Font Book and select the download Fira Code (.otf, .ttf)
  • Win:
    Double click font file to install

VSCode

There are a lot editor, but for me Vim and VScode is enough.
Download from here: VSCode

Set Fira Code in VSCode (link)

1
2
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true

Zsh

Check zsh installed

1
$ zsh --version

Follow the page to install oh-my-zsh