David Carr

Open current terminal directory in Sublime Text

Being able to open the current directory from terminal in Sublime Text is very useful, I’ve seen others do it and figured I’d find out. Turns out it’s very simple by placing the following command in your bash profile:

nano ~/.bash_profile

Command to open sublime text.

# Open sublime command
subl () {
   open -a "Sublime Text" $@

Then to open the current directory in Sublime Text:

subl .

//calling subl without any arguments will open sublime.


Domains are often purchased from multiple providers, keeping track of where a domain is and its DNS settings can be tricky. Domain Mapper solves this by listing all your domains in one place. View your DNS settings and receive reminders to renew your domains. Try it today.

Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.