Sublime Forum

Ubuntu/terminal launch behavior

#1

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:

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.

0 Likes

#2
alias subproj='subl --add --new-window . &'

Seems to work fine for me.

0 Likes

#3

I must have done something horribly wrong the first few times I did it, thanks

0 Likes