每次更换新的Mac电脑,又要重新设置开发环境,现在把重复性的设置记录下,方便日后复制粘贴
设置隐藏文件
// 显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -boolean true
killall Finder
// 不显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -boolean false
killall Finder
设置Mac 可以安装任意来源软件
sudo spctl --master-disable
gif录屏软件
LICEcap http://www.pc6.com/mac/135257.html
安装cocapods
sudo gem install -n /usr/local/bin cocoapods -v 1.8.3
设置本机公钥,用于git验证:
生成公钥
ssh-keygen -o -t rsa -b 4096 -C "yannchee@163.com"
拷贝公钥到剪贴板
pbcopy < ~/.ssh/id_rsa.pub
网友评论