0
安裝OS X Mavericks後,我發現我無法再通過鍵入'subl'從命令行啓動Sublime Text 2。我在網上看了看崇高的文本文檔,並在堆棧溢出,並在這裏創造一個符號鏈接:安裝OS X Mavericks後,Sublime Text 2無法從命令行工作
Christophers-MacBook-Pro-2:bin christopherspears$ pwd
/usr/local/bin
Christophers-MacBook-Pro-2:bin christopherspears$ ll
lrwxr-xr-x 1 christopherspears staff 62 Mar 6 15:24 [email protected] -> /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
然後我在.bash_profile文件中看了:
Christophers-MacBook-Pro-2:~ christopherspears$ cat .bash_profile
export PATH="/usr/local/bin:$PATH"
# Set your default text editor
export EDITOR=subl
好像在/ usr/local/bin目錄在$ PATH:
Christophers-MacBook-Pro-2:~ christopherspears$ echo $PATH
/usr/local/share/python:/Users/christopherspears/.rbenv/bin:/usr/local/heroku/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
不知道是什麼問題。