Ayuth’s Story
Published in

Ayuth’s Story

New Tab iTerm2 within Current Directory


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 !



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