Terminal to Finder

January 22nd, 2007

I’ve been using the terminal more and more and began to find the process of nipping back and forth between it (at the pwd) and the Finder a little tedious, typing:

open -a "Finder.app" .

was hardly difficult but I figured that it would be handy to shorten it down to simply typing finder. To do this I’d imagined that I’d have to create a binary executable for one of the bin folders. Thankfully it was simpler than that, it’s possible to put plain old shell scripts in the bin folders and have them execute. So in /usr/local/bin I created a file called finder, inside which I put the following:

#!/bin/bash

open -a "Finder.app" .
exit 0;

chmod 755 the file and it worked. The only other thing you may need to do is make sure that you have the following line :

export PATH="$PATH:/usr/local/bin"

in your shell profile ~/.profile

  • del.icio.us
  • Digg
  • StumbleUpon
  • Technorati

2 Responses to “Terminal to Finder”

  1. Dom Says:

    Typing just “open .” has always worked for me !

  2. simon Says:

    Did I say Finder? I really meant PathFinder ;)

Leave a Reply