6 ms·
My first piece of advice is to set up a command line alias for Sublime... Sublime ships w/ a command-line executable: /usr/bin/subl
by molecule 14y ago
My first piece of advice is to set up a command line alias for Sublime...
Sublime ships w/ a command-line executable:
/usr/bin/subl
- knotty66 14y agoMaybe on OS X, on Linux I always end up rolling my own ...
- adrianhoward 14y ago/usr/bin/sublime on Linux installs I believe.
- ssorallen 14y agoThey have a nice guide how to set it up too: http://www.sublimetext.com/docs/2/osx_command_line.html 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
- subpixel 14y agoNitpick: the trailing 'l' has always seems superfluous to me - my alias is 'sub'
- molecule 14y agothe trailing 'ubl' has always seemed excessive to me: alias s='subl'
- lunixbochs 14y agoIf you find the "s" too much to type... and the "ubl"... and the space... Voila! command_not_found_handle() { [[ -e "$1" ]] && subl "$1" }
- stevvooe 14y agoI just hooked my shell to my frontal lobe. I find aliases to be restricting.
- jurre 14y agoThis hasn't been working for me for some reason on OSX, the posted alternative however did work so I'm quite excited!
- molecule 14y agoah, on further inspection: I had created a symbolic link to /usr/bin The actual executable is buried in Sublime's .app directory: Sublime Text 2.app/Contents/SharedSupport/bin/subl
- kbd 14y agoOn OSX I just use the built-in 'open -t', which works so long as Sublime Text is configured to open .txt files.
- Foxboron 14y agoor you just get the PPA https://launchpad.net/~webupd8team/+archive/sublime-text-2 https://launchpad.net/~webupd8team/+archive/sublime-text-2
- ryanpetrich 14y agoYou can also pipe text into subl and it will open in a new Sublime Text tab. find . | subl