【发布时间】:2014-08-07 08:45:59
【问题描述】:
我正在尝试让 Subl 命令在我的 Mac OSX Mavericks 上运行。我的根应用程序文件夹中有 ST3。
当我运行下面的行时,我也使用 sudo 运行它并得到相同的消息。
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
在终端中我收到以下错误
ln: /Users/username/bin/subl: No such file or directory
我仔细检查了它是否可以正常工作
subl --help
但出现以下错误
-bash: subl: command not found
我正在尝试让它工作,以便我可以将它与 Git 一起使用并从那里用 sublime 打开文件https://help.github.com/articles/associating-text-editors-with-git#using-sublime-text-as-your-editor
我的 .bash_profile 如下所示
export PATH=/usr/local/git/bin:$PATH
export PATH="/usr/local/bin:$PATH"
export EDITOR='subl -w'
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
谁能告诉我如何解决这个问题, 谢谢
【问题讨论】:
标签: macos git sublimetext3