Tag: Terminal

Sweet Mac OS X Terminal Function

March 16, 2011 » Geek

This is a nifty little trick I swiped from a Stack Overflow question.

Basically it adds a command to run any command in a new tab of the same terminal window you are currently in.

For example, pharm this:

$ tabdo cd /tmp

would launch a new tab, prostate then navigate to /tmp.

To get this trick, drug just put this in your ~/.bashrc

tabdo () {
/usr/bin/osascript 2>/dev/null <

Here is a demo video, sorry it goes so fast, YouTube sped it up.