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 2014-04-04T06:31:12.423

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 – 2014-09-16T21:59:41.460

1@JörnZaefferer that link has expired, do you know where to find the updated link? – 2rs2ts – 2015-07-24T18:27:57.610

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 2014-04-04T06:31:12.423

Reputation: 176