OS X Terminal: Open New Tabs in Same Working Directory

Published on Christian Mayer's Weblog

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"'

Recent Posts

About the Author

Christian is a professional software developer living in Vienna, Austria. He loves coffee and is strongly addicted to music. In his spare time he writes open source software. He is known for developing automatic data processing systems on Debian Linux server.

Categories: Commented
Tags: Apple, Mac, Shell, Terminal, Bash

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