Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Open current terminal directory in Sublime Text

David Carr

Development

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.

 

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.