Christian Mayer's Weblog

OS X Terminal: Open New Tabs in Same Working Directory

There is an option in the settings of OS X 10.10’s Terminal app: New tabs open with.

This works only if you use $PWD in your PROMPT_COMMAND variable of your shell.

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}#$$\007"'

Posted on .
Categories: Commented
Tags: Apple, Mac, Shell, Terminal, Bash

Categories | RSS Feed | Usage | Imprint
Copyright © 2006 by