Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've seen Automator and AppleScripts that open a terminal to the path of the file currently selected in a Finder window. I think it would be more useful to me to simply have a button on the Finder toolbar that opens a terminal window to the current directory listed in the Finder.

How can I get a Terminal-here button added to the Finder toolbar?

share|improve this question

As of Mac OS X Lion 10.7, Terminal includes exactly this functionality as a Service. As with most Services, these are disabled by default, so you'll need to enable this to make it appear in the Services menu.

System Preferences > Keyboard > Keyboard Shortcuts > Services

Enable New Terminal at Folder. There's also New Terminal Tab at Folder, which will create a tab in the frontmost Terminal window (if any, else it will create a new window). These Services work in all applications, not just Finder, and they operate on folders as well as absolute pathnames selected in text.

You can even assign command keys to them.

Services appear in the Services submenu of each application menu, and within the contextual menu (Control-Click or Right-Click on a folder or pathname).

In addition, Lion Terminal will open a new terminal window if you drag a folder (or pathname) onto the Terminal application icon, and you can also drag to the tab bar of an existing window to create a new tab.

Finally, if you drag a folder or pathname onto a tab (in the tab bar) and the foreground process is the shell, it will automatically execute a "cd" command. (Dragging into the terminal view within the tab merely inserts the pathname on its own, as in older versions of Terminal.)

On a related note, Lion Terminal also has new Services for looking up man pages: Open man page in Terminal displays the selected man page topic in a new terminal window, and Search man Pages in Terminal performs "apropos" on the selected text. The former also understands man page references ("open(2)"), man page command line arguments ("2 open") and man page URLs ("x-man-page://2/open").

share|improve this answer
up vote 4 down vote accepted

Reviewed OpenTerminal here and then found ShellHere. I chose ShellHere, compiled the source without a hitch and it does exactly what I want.

share|improve this answer
I think that cdto is superior to ShellHere both in speed and appearance (icon). It also spares you from that cd /very/long/path that ShellHere shows every time. Check my answer below. – Ricardo Sánchez-Sáez Sep 30 '14 at 11:56

This project looks like the furthest foray into making this addition full-featured:

There's more expansion on this idea here:

share|improve this answer
This seems like a better solution than what I suggested. – donut Feb 16 '10 at 2:03

I use OpenTerminal and just drag it to my toolbar. Just for fun, a video on how to add an app to your toolbar.

share|improve this answer

Did you try Path Finder? ( It does that and much more... It's not a button added to Finder, but it's a very powerful Finder replacement.

share|improve this answer
Thanks. I've seen that app before. I thought about trying it, but felt it would probably degrade system performance. On your recommendation, I reviewed it again and searched for other people's experience with it. There was a time when it did have some performance problems. Perhaps those are cleared up now. I may buy it yet. – Michael Prescott Feb 15 '10 at 16:19

cdto looks great and seems to be frequently maintained. They even have Mavericks and Yosemite matching icons (you have to install them manually).

ShellHere has a horrible icon (and adds the cd /you/long/folder/path/here as the first command to the terminal, which is super annoying).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .