Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从终端用subl启动Sublime Text编辑器 #7

Open
luckyyyyy opened this issue Jun 14, 2017 · 0 comments
Open

从终端用subl启动Sublime Text编辑器 #7

luckyyyyy opened this issue Jun 14, 2017 · 0 comments
Labels

Comments

@luckyyyyy
Copy link
Owner

luckyyyyy commented Jun 14, 2017

Macterminal中,大家都知道可以使用open命令打开指定目录的文件夹到Finder中,当然和大部分编辑器相同,sublime text也是可以被打开的。

对于Sublime Text 3可以使用以下命令

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

对于Sublime Text 2可以使用以下命令

sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

用法很简单

cd to/path
subl .
subl to/path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant