设置新 Mac
HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Formulae
# For Ruby & Jekyll
brew install chruby ruby-install
# Render
brew install povray
# Required by zotero
brew install pdftk-java
Casks
brew install --cask iterm2
brew install --cask fig
brew install --cask iina
brew install --cask mactex
brew install --cask mos
brew install --cask paraview
brew install --cask transmission
brew install --cask webplotdigitizer
brew install --cask zerotier-one
Others
Node and nvm
To install or update nvm, you should run the install script. To do that, you may either download and run the script manually.
nvm use 16
VIM
.vimrc
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
filetype indent on
" Turn syntax highlighting on.
syntax on
" Set shift width to 4 spaces.
set shiftwidth=4
" Set tab width to 4 columns.
set tabstop=4
" While searching though a file incrementally highlight matching characters as you type.
set incsearch
" Ignore capital letters during search.
set ignorecase
" Override the ignorecase option if searching for capital letters.
" This will allow you to search specifically for capital letters.
set smartcase
" Use highlighting when doing a search.
set hlsearch