New Tab iTerm2 within Current Directory
Published in
2 min readMar 23, 2018
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
- Click iTerm2 → Preferences → Profiles
- In “Working Directory” section select “Reuse previous session’s directory”
- 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
- New Windows
- New Tabs
- New Split Planes
by go to “Preferences → Profiles → General → Working Directory → Advanced Configuration”
Happy Hacking !
If you want to decorate you iTerm I recommended to read though my previous blog.