h1ghlevelb1ts

open

I blogged before about my problems with opening files (especially dot files) from my console in Mac OS X. I described several workarounds like adding custom functions to your ~/.bashrc (like switchFinderOptions() or edit()) or installing TextMate. Turns out I missed a damn useful built-in command line tool which ships with Mac OS X - 'open'. Just typing:

open <file>

opens the specified file with the default application for this file type. And it gets better.

open <directory>

opens a Finder window in starting in the specified directory. I especially love

open .

I love it. It's my new favorite ;-)

--Hardy