macOS Reconfigure

应用

基本应用

  • QQ
  • MWeb
  • Xcode8
  • SQLiteProfessional
  • xScope
  • Cornerstone
  • iTranslate
  • Backgrounds
  • Moom
  • Entropy

Cocoapods

sudo gem update --system
gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
sudo gem install -n /usr/local/bin cocoapods --pre
pod setup

Brew 安装应用

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

Git SSH-Key

ssh-keygen -t rsa -b 4096 -C "senpng@qq.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
git config --global user.name 'SenPng'
git config --global user.email 'senpng@qq.com'

NVM

brew install nvm
nvm install node && nvm alias default node //安装最新node并设置为默认的版本
mkdir ~/.nvm

添加到~/.zshrc:

export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"

Vagrant

brew cask install virtualbox
brew cask install vagrant
sudo rm -rf /opt/vagrant/embedded/bin/curl

ReactNative

brew install watchman
npm install -g react-native-cli

Proxifier

brew cask install proxifier

Sublime Text3

brew cask install sublime-text

安装Package Control

import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

配置

cd /Users/SenPng/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
git init
git remote add origin git@github.com:senpng/SublimeText3-User.git
git pull origin master
git branch --set-upstream-to=origin/master master
git pull

注册码

注册码
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
200C25BE DBBC4855 C4CFB774 C5EC138C
0FEC1CEF D9DCECEC D3A5DAD1 01316C36
—— END LICENSE ——

Clean My Mac3

brew cask install cleanmymac

iStat Menus

brew cask install istat-menus

Android Studio

brew cask install java android-sdk android-studio

添加环境变量到~/.zshrc

export ANDROID_HOME=/usr/local/opt/android-sdk

Archiver

需要下载2.x版本

NTFS14

brew cask install paragon-ntfs

Sketch

brew cask install sketch

Dash

brew cask install dash

Reveal

brew cask install reveal

Flashlight

之前需要关闭系统内核保护
csrutil disable

brew cask install flashlight

Other

xcode-select --install
brew cask install google-chrome java android-studio shadowsocksx thunder paw cheatsheet packages docker charles
brew install yarn p7zip
sudo gem install -n /usr/local/bin fastlane -NV
npm i -g http-server
npm i -g hexo-cli

ZSH

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

配置

主题
ZSH_THEME="amuse"

修改vim ~/.oh-my-zsh/themes/amuse.zsh-theme –> 🕒

插件
autojump
brew install autojump

修改~/.zshrc配置

plugins=(git autojump zsh_reload)

powerline

安装powerline

brew install python
pip install git+git://github.com/powerline/powerline
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
cd .. && rm -rf fonts

设置终端字体

Meslo LG S for Powerline

修改~/.zshrc配置

#. /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh

macvim

安装macvim

brew install macvim --env-std --with-override-system-vim

配置Vim ~/.vimrc

set rtp+=/usr/local/lib/python2.7/site-packages/powerline/bindings/vim #这里需要改成自己的安装路径
set guifont=Meslo\ LG\ S\ for\ Powerline
set laststatus=2
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set number
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8

安装Pathogen

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
cd ~/.vim/
git clone https://github.com/tpope/vim-pathogen.git
mv vim-pathogen/autoload/* ./autoload
rm -rf vim-pathogen

~/.vimrc 中添加

execute pathogen#infect()

下载颜色配置

cd ~/.vim/bundle
//git clone git://github.com/altercation/vim-colors-solarized.git #solarized颜色主题
git clone https://github.com/endel/vim-github-colorscheme.git #github颜色主题

修改 .vimrc,在 execute pathogen#infect() 下面添加

syntax enable
set background=light
colorscheme github

设置

Finder

  • 桌面显示的项目:全去掉
  • 边栏
  • 高级:搜索当前文件夹
  • 显示资源文件夹

系统偏好设置

开启任何来源

sudo spctl --master-disable

辅助功能

  • 开启三指头拖移
  • 开启按下按键时朗读所选文本

Mission Control

  • 关闭Dashboard
  • 触发角

Docker

  • 大小
  • 关闭应用程序显示指示灯

安全与隐私

  • 打开防火墙

Spotlight

触摸板

静默点按

iCloud

  • 照片:开启iCloud和照片流

用户与群组

  • 密码提示:当你看到这行字,说明你离我电脑太近了!
  • 关闭客户登录

键盘

  • 开启输入法菜单在菜单栏显示
  • 使用大小写键盘切换中英文输入法
  • 自动切换输入法
  • 快捷键 切换输入源:opt + command + space, 屏蔽之前的快捷键

其它

下载图标