New Tab iTerm2 within Current Directory

Ayuth Mangmesap
Mar 23, 2018 · 2 min read

For real world working with terminal, many developers use more than one window at the same time. Unfortunately, by default iTerm2 is open new tab with your home folder, but today we’re going to fix it.

Config iTerm2 to Open New Tab with Same Directory

  1. Click iTerm2 → Preferences → Profiles
  2. In “Working Directory” section select “Reuse previous session’s directory
  3. Try to new tab or press ‘Command ⌘+ D’ or ‘Command ⌘+ Shift ⇧ + D’

Advanced Configuration

As Derek Wood mention in comment below, we can more advanced config current directory for

  1. New Windows
  2. New Tabs
  3. New Split Planes

by go to “Preferences → Profiles → General → Working Directory → Advanced Configuration”

Advanced Configuration for Working Directory

Happy Hacking !

Ayuth’s Story

ヽ༼ ° ͟ ͜ʖ ͡° ༽ノ

Ayuth’s Story

ヽ༼ ° ͟ ͜ʖ ͡° ༽ノ

Ayuth Mangmesap

Written by

Ayuth’s Story

ヽ༼ ° ͟ ͜ʖ ͡° ༽ノ

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Start a blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store