迁移文件,powertoys,system,config
- 首先安装 brew,中间可能会提示安装 Command line tool,必须先安装。命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
恢复之前安装的 package,如:
brew install autojump cloc ruby23 cpulimit wget
brew install chisel
- 安装 zsh,oh my zsh
brew install zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
# 还原我的配置
echo "\nsource \"\$HOME/.config/zsh/my.sh\"" >> ~/.zshrc
- 安装 shadowsocks 客户端:
brew install python
pip install shadowsocks
brew openssl swig libevent
pip install m2crypto gevent
~/bin/cfw.command
- 触控板更多手势,只留前三个
- 导入BTT预设
-
几个需要重新安装的应用:
-
Evernote 账本恢复
-
恢复 Quick Look 插件,安装高亮插件依赖、恢复文字选中:
brew install highlight
defaults write com.apple.finder QLEnableTextSelection -bool true;
- zsh 后续配置
brew install zsh-completions zsh-history-substring-search zsh-navigation-tools zsh-syntax-highlighting
# 修改开启的插件:autojump brew colored-man forklift gem history-substring-search pod
- polipo 配置
brew install polipo
# 修改日志权限
sudo touch /var/log/polipo
sudo chown $USER /var/log/polipo
# 检查配置
polipo -v -c ~/.config/polipo/conf
- 恢复文件关联
m ~/Library/Preferences/com.apple.LaunchServices.plist
添加
{ LSHandlerContentType = "public.folder";
LSHandlerRoleAll = "com.binarynights.forklift2";
},
{ LSHandlerContentType = "public.unix-executable";
LSHandlerRoleShell = "com.googlecode.iterm2";
},
{ LSHandlerContentType = "com.apple.terminal.shell-script";
LSHandlerRoleViewer = "com.googlecode.iterm2";
},
{ LSHandlerContentType = "public.plain-text";
LSHandlerRoleAll = "com.macromates.textmate.preview";
},
{ LSHandlerContentType = "net.daringfireball.markdown";
LSHandlerRoleAll = "com.mouapp.mou";
},
{ LSHandlerContentTag = "mk";
LSHandlerContentTagClass = "public.filename-extension";
LSHandlerRoleAll = "com.mouapp.mou";
},
重启生效,想要立即生效可以使用下面的命令
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
打开配置文件:
open /Library/Preferences/com.apple.TimeMachine.plist
恢复:
/Applications
~BB9z/.cocoapods
~BB9z/Downloads
~BB9z/Music/iTunes/iTunes Media/Downloads
~BB9z/Music/iTunes/iTunes Media/iTunes U
~BB9z/Music/iTunes/iTunes Media/Mobile Applications
~BB9z/Library/Saved Application State
~BB9z/Library/Developer/Xcode/DerivedData
~BB9z/Library/Developer/Xcode/iOS Device Logs
~BB9z/Library/Developer/Xcode/iOS DeviceSupport
~BB9z/Library/Developer/Shared/Documentation/DocSets
~BB9z/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/Logs
Accessibility > Speech
可用的语音:
- English(UK), Daniel
- English(US female), Samantha
- English(US male), Tom
到 /System/Library/Speech/Voices 删除不用的语音