Provision a new Mac and dotfiles
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Karabiner
Shadowsocks
Sublime
VSCode
macos-terminal-themes @ 8e04b0a
zarniwoop.vim @ 82dc346
.bash_profile
.gemrc
.gitmodules
.mac
.vimrc
.zshrc
Brewfile
README.md
bootstrap

README.md

Setup up a new Mac

Inspired by KrauseFx/new-mac.

The checkbox denotes whether it is done by bootstrap.

关于:我是如何初始化 Mac 环境的

Bootstrap

$ xcode-select --install # or download here <https://developer.apple.com/download/more/>
$ git clone --recursive https://github.com/crispgm/dotfiles.git
$ cd dotfiles
$ ./bootstrap

Dev Setups

Terminal & Shell

Git

  • User name git config --global user.name "Your Name"
  • User email git config --global user.email "yourmail@example.com"
  • Case sensitive git config --global core.ignorecase false

Ruby

  • Setup .gemrc
  • Setup bundler's mirror: bundle config mirror.https://rubygems.org https://gems.ruby-china.com if you locate in China mainland

Shadowsocks

Sublime Text

  • Create subl in Terminal: sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl ~/Applications/subl
  • Migrate .sublime-settings
  • Install PackageControl
  • Install Monokai-Spacegrey with PackageControl
  • Install Tomorrow theme with PackageControl
  • Install syntax-highlighting-for-sass, vue-syntax-highlight and babel-sublime with PackageControl

VSCode

  • Create code in Terminal: sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code ~/Applications/code
  • Install extensions

Karabiner

  • Install karabiner-elements
  • Setup karabiner.json if using HHKB

Nutstore

  • Sync to ~/sync/Nutstore
  • Setup syncing folder for apps (e.g. Alfred, Dash ...)

macOS Setups

Trackpad

  • Tap to click
  • Seconary click: Click in bottom right corner

Time

  • Set time zone automatically using current location
  • Use a 24-hour clock and show date

Finder

  • New Finder show Desktop
  • Remove labels and clean up Sidebar

Dock

  • Change to the size you like
  • Cancel: Show recent application in Dock
  • Downloads: View content as Grid
  • Add blank seperator: defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}