第一步:创建bin folder
mkdir ~/bin
第二步:创建一个符号链接
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
第三步:增加环境变量到你的~/.profile 或者 ~/.bash_profile中
export PATH="/Users/<username>/bin:$PATH" export EDITOR='subl'
第四步:测试
subl ~/.bash_profle
This site Original article All followed" Attribution—NonCommercial—ShareAlike 4.0 (CC BY-NC-SA 4.0) ”。 Please keep the following marks for sharing and interpretation:
Original author: Jake Tao Source: 「设置如何从terminal中启动sublime」
Post a reply