触摸板轻触点击

  1. defaults write com.apple.AppleMultitouchTrackpad Clicking -int 1
  2. defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
  3. defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

三指拖动

  1. defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true
  2. defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true

修改 F1、F2 为标准功能键

  1. defaults write -globalDomain com.apple.keyboard.fnState -int 1

开启完全键盘控制

  1. defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

自动展示/隐藏 dock

  1. defaults write com.apple.dock autohide -bool true

Finder 中总是显示文件名的后缀

  1. defaults write NSGlobalDomain AppleShowAllExtensions -bool true

安装任何来源 App

  1. sudo spctl --master-disable

禁用文字自动更正

  1. defaults write -g NSAutomaticQuoteSubstitutionEnabled -bool false
  2. defaults write -g NSAutomaticDashSubstitutionEnabled -bool false
  3. defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false

安装 oh my zsh

  1. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装 Homebrew

  1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

安装 rbenv、升级 ruby

  1. brew install rbenv
  2. rbenv install 2.7.3
  3. rbenv global 2.7.3 # 在 .zshrc 中添加 eval "$(rbenv init -)"

安装 bundler

  1. gem install bundler
  2. gem install rubygems-Bundler
  3. gem regenerate_binstubs

安装 cocoapods

  1. sudo gem install cocoapods

安装 iterm2

  1. brew install iterm2

安装 lrzsz

  1. brew install lrzsz

安装 微信

  1. brew install wechat

安装 nvm

  1. brew install nvm

安装字体

  1. brew tap homebrew/cask-fonts
  2. brew install font-jetbrains-mono
  3. brew install font-hack-nerd-font

其他

  1. brew install autojump
  2. brew install loc
  3. brew install gpg
  4. brew install archey4
  5. brew install exiftool
  6. brew install nvim
  7. brew install thefuck
  8. brew install lookin

配置 ssh

  • github
  • 公司 gitlab
  • 服务器