We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
If you use iTerm and frequently split your terminal into multiple panes, you might have noticed that new panes donβt always start in the same working directory as the original one. This can be inconvenient when navigating projects or working in deeply nested directories.
Luckily, iTerm has a built-in option to fix this!
To ensure that new panes inherit the working directory of the current terminal:
- Open iTerm.
- Go to Preferences (
Cmd + ,
). - Navigate to the Profiles tab.
- Select your active profile (e.g., "Default").
- Under the General tab, check "Reuse previous session's directory".
Thatβs it! Now, when you split a pane using:
Cmd + Shift + D
(Split Horizontally)Cmd + D
(Split Vertically)
the new terminal will start in the same directory as the previous one.
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.