Open a new tab with the current directory on a mac

Updated . Posted . Visible to the public.

I found a nice script on crazylittlehacks Show archive.org snapshot and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run it like this:

tab

You may also pass a command that will be run in that newly opened tab:

tab ruby script/server

Note: This does not play too nice with Visor Show archive.org snapshot , because Visor will always be "window 1" for AppleScript. By modifying the script and replacing in window 1 with in window 2, the script will work in any terminal window but Visor.

Dominik Schöler
Last edit
Attachments
tab
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2011-06-03 14:18)