我的Mac装机步骤

1. 安装基础软件和设定

  • 安装 iterm2
  • 安装 homebrew
  • 安装输入法
  • 设置键盘映射 System Preferences > Keyboard > Modifier Keys...
  • 设置滚轮 System Preferences > Trackpad > Scroll & Zoom > Scroll direction: Natural
  • 设置允许重复按键 defaults write -g ApplePressAndHoldEnabled -bool false, 需重启机器

2. 安装0h-my-zsh

  • 2.1 安装oh-my-zsh

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
  • 2.2 安装powerline字体

    brew tap homebrew/cask-fonts
    // Microsoft Cascadia Code
    brew install --cask  font-caskaydia-cove-nerd-font
    // Meslo LG
    brew install --cask font-meslo-lg-nerd-font
    
  • 2.3 设置item2配色方案和字体

    Perferences—->Profiles—->Colors—->Color Presets 选择 Solarized Dark

    Perferences—->Profiles—->Text–>Font 选择任意 Powerline 字体

    Perferences–>Profiles–>Window–>Transparency

  • 2.4 安装zsh插件

    brew install autojump

    在.zshrc中指定插件 plugins=(git autojump)

  • 2.5 修改zsh主题

    vi .zshrc
    // 修改ZSH_THEME
    ZSH_THEME="agnoster"
    

3. 文件拷贝

~/Works
~/Repos

4. dotfiles

curl -fsSL https://raw.githubusercontent.com/codiy1992/dotfiles/master/.scripts/setup.sh | bash

5. Brewfile

brew bundle install

6. 开启mac支持windows的ntfs格式移动硬盘

sudo nano /etc/fstab
LABEL=移动硬盘名称 none ntfs rw,auto,nobrowse
然后ctrl + o,回车,ctrl + x 回车,保存并退出

Last modified February 14, 2022: add some docs (88132bf)