Tried setting up Sublime Text 2 using an alias and then a ln syslink Alias:
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
Then Syslink
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
Both returned the error:
~bash: /Applications/Sublime: No such file or directory
So I tried going into /Applications/Sublime\\ Text\\ 2.app/Contents/SharedSupport/bin/
and running subl
directly out of frustration and discovered that subl
was actually returning the error.
~bash: /Applications/Sublime: No such file or directory
The alias and syslink had worked it was subl
that was returning the error. Any ideas of how to correct this?
Your alias is set up incorrectly, and is overriding your symlink as aliases are evaluated by the shell before searching $PATH
. Try running the following (note the double quotes and the lack of escape sequences):
alias subl="/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
If that works, you can then add it to your ~/.profile
or ~/.bash_profile
, whichever you use.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.