Home Download Buy Blog Forum Support

Linux version of OSX 'subl' command line editor

Linux version of OSX 'subl' command line editor

Postby BerkshireKnight on Thu Dec 27, 2012 8:12 pm


I've read in several places that OX users receive a program called 'subl', which can be used as an in-terminal text editor, alongside the full GUI version of st2. Is there anything similar in existence or planned for Linux? Part of my brain rebels at the mismatch of using st2 for most operations, but also using nano (don't shoot me) for simpler tasks. Would greatly appreciate a way of using st2 in-terminal!
Posts: 1
Joined: Thu Dec 27, 2012 8:09 pm

Re: Linux version of OSX 'subl' command line editor

Postby Foxboron on Fri Dec 28, 2012 12:18 am

1. Backup all of your Sublime settings in the package dir.
2. Delete Sublime Text 2
3. Follow this: http://www.ubuntuupdates.org/ppa/sublime
4. When done; Open a terminal and type 'subl .'
5. Thank me later.
Posts: 3
Joined: Mon Jun 11, 2012 6:07 am

Re: Linux version of OSX 'subl' command line editor

Postby beagle3429 on Sun Jan 20, 2013 6:08 am

Unless I'm horribly mistaken, I think that the 'subl' command your talking about is just a convenient way to open ST2 from the command line, not a separate in-command-line editor like nano.

Having 'subl' just makes it quicker to open files *from* the command line, not *inside* the command line.

To get the command in linux just make a symlink from your sublime_text executable to /usr/bin/subl
> ln -s sublime/install/path/sublime_text /usr/bin/subl

Restart your terminal and 'subl' will be available
Posts: 1
Joined: Sun Jan 20, 2013 6:02 am

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Google [Bot] and 7 guests