Comment on Configuring Sublime Text 2Comments−molecule13yMy first piece of advice is to set up a command line alias for Sublime...Sublime ships w/ a command-line executable: /usr/bin/subl−ssorallen13yThey have a nice guide how to set it up too: http://www.sublimetext.com/docs/2/osx_command_line.html The one-step setup is: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl−subpixel13yNitpick: the trailing 'l' has always seems superfluous to me - my alias is 'sub'−molecule13ythe trailing 'ubl' has always seemed excessive to me: alias s='subl'−lunixbochs13yIf you find the "s" too much to type... and the "ubl"... and the space...Voila! command_not_found_handle() { [[ -e "$1" ]] && subl "$1" }−stevvooe13yI just hooked my shell to my frontal lobe. I find aliases to be restricting.−knotty6613yMaybe on OS X, on Linux I always end up rolling my own ...−adrianhoward13y/usr/bin/sublime on Linux installs I believe.−ryanpetrich13yYou can also pipe text into subl and it will open in a new Sublime Text tab. find . | subl−Foxboron13yor you just get the PPA https://launchpad.net/~webupd8team/+archive/sublime-text-2−jurre13yThis hasn't been working for me for some reason on OSX, the posted alternative however did work so I'm quite excited!−kbd13yOn OSX I just use the built-in 'open -t', which works so long as Sublime Text is configured to open .txt files.−molecule13yah, on further inspection: I had created a symbolic link to /usr/binThe actual executable is buried in Sublime's .app directory: Sublime Text 2.app/Contents/SharedSupport/bin/subl
Comments
My first piece of advice is to set up a command line alias for Sublime...
Sublime ships w/ a command-line executable:
They have a nice guide how to set it up too: http://www.sublimetext.com/docs/2/osx_command_line.html The one-step setup is:
Nitpick: the trailing 'l' has always seems superfluous to me - my alias is 'sub'
the trailing 'ubl' has always seemed excessive to me:
If you find the "s" too much to type... and the "ubl"... and the space...
Voila!
I just hooked my shell to my frontal lobe. I find aliases to be restricting.
Maybe on OS X, on Linux I always end up rolling my own ...
/usr/bin/sublime on Linux installs I believe.
You can also pipe text into subl and it will open in a new Sublime Text tab.
or you just get the PPA https://launchpad.net/~webupd8team/+archive/sublime-text-2
This hasn't been working for me for some reason on OSX, the posted alternative however did work so I'm quite excited!
On OSX I just use the built-in 'open -t', which works so long as Sublime Text is configured to open .txt files.
ah, on further inspection: I had created a symbolic link to /usr/bin
The actual executable is buried in Sublime's .app directory: