How to restore my iterm2/zsh session after restart?

7

3

I use oh-my-zsh with iTerm2 on osx and I'd like them to retain the same tabs with the same directories and hopefully the same textual history after a restart.

Currently after a restart iTerm reopens with the correct number of tabs and windows but all without the textual history and at ~.

This is the only app I have which is not restart proof...

Thanks in advance for any help

Ittai

Posted 11 years ago

Reputation: 187

1

iTerm2 has no support for this. This ticket can be used to track the implementation: https://code.google.com/p/iterm2/issues/detail?id=2775

– Jörn Zaefferer – 10 years ago

1@JörnZaefferer that link has expired, do you know where to find the updated link? – 2rs2ts – 9 years ago

Answers

6

There's a duplicate on Ask Different. tl;dr: install the latest iTerm2 beta 2.9+, and make sure your Mac is set to not close windows when quitting an app. The new version of iTerm2 restores windows and working directories automagically!

Bluu

Posted 11 years ago

Reputation: 176