Home Download Buy Blog Forum Support

slime gem for opening in terminal

slime gem for opening in terminal

Postby orta on Sat Jul 02, 2011 2:31 pm

Code: Select all
gem install slime


http://rubygems.org/gems/slime

The command will install a script that opens Sublime Editor when you use the command slime. OS X only I'm afraid.
orta
 
Posts: 1
Joined: Sat Jul 02, 2011 2:29 pm

Re: slime gem for opening in terminal

Postby saivert on Tue Jul 26, 2011 5:40 pm

So this can't be done with a simple bash (shell) script instead?
Also this leaves a terminal window on the screen every time I run it.
And directly executing Sublime text 2 beta from terminal spawns a new instance of the app instead of invoking the already running instance.
saivert
 
Posts: 6
Joined: Tue Jul 26, 2011 5:37 pm

Re: slime gem for opening in terminal

Postby lunixbochs on Tue Jul 26, 2011 6:17 pm

there's a subl command already on osx, which interacts well with an already-open sublime: http://www.sublimetext.com/docs/2/osx_command_line.html
lunixbochs
 
Posts: 91
Joined: Fri Oct 08, 2010 10:18 pm

Re: slime gem for opening in terminal

Postby luislavena on Tue Jul 26, 2011 11:53 pm

And this is my batch file for Windows:

https://github.com/luislavena/binfiles/ ... r/subl.bat
luislavena
 
Posts: 25
Joined: Fri Jun 04, 2010 7:15 pm

Re: slime gem for opening in terminal

Postby roy on Sat Dec 24, 2011 12:46 am

Awesome--thanks for this Luis!
roy
 
Posts: 4
Joined: Sat Dec 24, 2011 12:40 am


Return to General Discussion

Who is online

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