Home Download Buy Blog Forum Support

Ubuntu/terminal launch behavior

Ubuntu/terminal launch behavior

Postby trexiL on Sat Dec 21, 2013 9:05 pm

I want to be able to cd through directories, and at any point type "subl" and open the directory in sublime as a "project" so I can see the file tree in the side bar. I have the functionality now by typing the following command:

Code: Select all
subl --add --new-window . &


What I'd really like is to bake this functionality into the shortcut "subl" does anyone know how to do this? In case it isn't blatantly obvious, I'm a *recent* Windows convert. I tried setting an alias but that bork everything and I had to undo and re-source bash multiple times just to get the default behavior back. I assume there's already a symlink somewhere or something but I don't know where it is, how to find it, or how to edit it properly.

Any assistance is appreciated.
trexiL
 
Posts: 2
Joined: Sat Dec 21, 2013 8:59 pm

Re: Ubuntu/terminal launch behavior

Postby redir on Sat Dec 21, 2013 11:21 pm

Code: Select all
alias subproj='subl --add --new-window . &'


Seems to work fine for me.
redir
 
Posts: 1
Joined: Sat Dec 21, 2013 11:19 pm

Re: Ubuntu/terminal launch behavior

Postby trexiL on Sun Dec 22, 2013 1:30 pm

I must have done something horribly wrong the first few times I did it, thanks
trexiL
 
Posts: 2
Joined: Sat Dec 21, 2013 8:59 pm


Return to General Discussion

Who is online

Users browsing this forum: applejosh and 12 guests