崇高文字2和终端 [英] Sublime Text 2 and Terminal

查看:126
本文介绍了崇高文字2和终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图让这个我就可以开始了崇高的文本文档给予崇高文本2中通过该命令的终端:

So I'm trying to make it so that I can start Sublime Text 2 from the terminal through this command, given by the Sublime Text documentation:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

但由于某些原因这是行不通的。我是从我的终端得到这个错误:

But for some reason this is not working. I get this error from my terminal:

ln: /Users/connorblack/bin/subl: No such file or directory

谁能帮我?

其他详情:我有SB2在我的应用程序文件夹。我试图做RoR的开发。

Other details: I have SB2 in my Applications folder. I'm trying to do RoR development.

推荐答案

您的问题是,你没有一个〜/ bin目录,只是做

Your problem is that you don't have a ~/bin directory, just do

mkdir ~/bin

,然后重试命令,它应该工作

And then retry the command, it should work

请注意,要使用subl从该文件夹,你仍然需要把它添加到你的 PATH ,这一行添加到您的.bashrc或者.zshrc:

Note that to use subl from this folder you will still need to add it to your PATH, add this line to your .bashrc or .zshrc:

export PATH=$PATH:/Users/connorblack/bin

这篇关于崇高文字2和终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆