Sublime Forum

Linux version of OSX 'subl' command line editor

#1

Howdy,

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!

0 Likes

#2
  1. Backup all of your Sublime settings in the package dir.
  2. Delete Sublime Text 2
  3. Follow this: ubuntuupdates.org/ppa/sublime
  4. When done; Open a terminal and type ‘subl .’
  5. Thank me later.
0 Likes

#3

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
e.g.:

ln -s sublime/install/path/sublime_text /usr/bin/subl

Restart your terminal and ‘subl’ will be available

0 Likes