Starting up with "open default window arrangement" causes shell to start at directory root rather than in home directory
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.3.12
- OS version: macOS Catalina 10.15.6
- com.googlecode.iterm2.plist
- My default shell is set to fish shell.
Detailed steps to reproduce the problem:
- Set the preference "General > Startup > Window restoration policy" to "Use System Window Restoration Setting".
- Quit iterm2 and start it back up.
- iterm2 window comes up and the prompt has me in my home directory -- "~/".
- Set the preference to "Open default window arrangement".
- Quit iterm2 and start it back up.
- iterm2 window comes up in the size, position, etc. of my default window arrangement. However, my shell prompt has me at the root of my hard drive -- "/".
What happened: The behavior between the two window restoration policies is inconsistent. Something about it and / or the interaction with fish shell leads to ending up in a different directory when you start up.
What should have happened: Regardless of the setting, I should start iterm2 and end up in "~/".