First, you'll need to create a soft link to the subl
command. If you haven't already, create a personal bin
directory:
mkdir ~/bin
then create the soft link:
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
Next, open your .zshrc
and add the following to the end:
export PATH=$PATH:~/bin
Now restart Terminal.app (or whichever term program you're using) and you should be able to open any file in ST2 from the command line using the subl
command. Since your $EDITOR
variable is already set properly, bundle open devise
should work as expected. Keep in mind that if you have the MacPorts version of Python installed, you'll need to open Sublime Text 2.app from the Finder before the command line subl
command will work.