更换mac的默认编辑器
- 打开
~/.bash_profile
(如果没有就创建一个) export EDITOR="/Applications/Sublime\ Text\ 2.app/Contents/MacOS/Sublime\ Text\ 2"
(有空格用“”包起来啦)
~/.bash_profile
添加环境变量
~/.bash_profile
(如果没有就创建一个)export EDITOR="/Applications/Sublime\ Text\ 2.app/Contents/MacOS/Sublime\ Text\ 2"
(有空格用“”包起来啦)~/.bash_profile
添加环境变量