Justkez

Trying to be a consistent blog 
« Back to blog

Handy TextMate from-the-terminal Tip

From a Mac OS X terminal window, you can use:

mate myfile.rb

to open a given file in TextMate.

You can also ask TextMate to open all the files and folders in the current directory as a project, so all files are accessible from the project drawer:

mate *

Useful functionality from MacroMates (developer of TextMate); one of those small features that makes you go "ahhh...that's nice".

Comments (1)

Mar 03, 2010
Derek said...
'mate -w' will cause terminal to wait for the textmate process to complete. So, in your .bash_profile set EDITOR="mate -w" and anytime a command line tool needs to spawn an editor, you'll get textmate.

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter