通过如下配置可让 iTerm2 在每次开机时恢复到之前的那些会话窗口。

  • 确保 iTerm2 高级设置中 Enable session restoration 为开启状态
Screen Shot 2020-05-09 at 20 11 32

iTerm2 高级设置 `Enable session restoration`

  • 设置中,常规里 Window restoration policy 选择 Use System Window Restoration Setting
Screen Shot 2020-05-09 at 20 15 11

iTerm2 常规设置 `Window restoration policy`

  • 打开 mac 的系统设置,关闭 Close windows when quitting an app
Screen Shot 2020-05-09 at 20 17 27

mac 常规设置 `Close windows when quitting an app`