Search code examples
locationiterm2iterm

How to preserve iTerm folder location between sessions?


I'm using iTerm 2, and each time I exit and launch it again it doesn't save the folder location I was working on.

This is really annoying to have to retype each time the previous location I was working on, event more when there were multiple tabs opened...

Is there a way so that iTerm automatically save the folder path for each tab when I exit ?


Solution

  • iTerm 2.9.x (currently beta) and above support restoring sessions like the default Terminal.app in OS-X.

    http://iterm2.com/downloads.html

    enter image description here

    https://gitlab.com/gnachman/iterm2/issues/3717#note_1733467