1

I know I can launch sublime from the command line with subl, but how do I open it with the current directory I'm in appearing in the file viewer panel on the left?

3

You can pass a file name or directory to the subl command without any extra arguments. For example, to open the current directory in the sidebar, just run:

subl .

To open a specific file, just pass its name:

subl ~/.bashrc

Run subl --help to get a summary of command-line options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.