Sebastian Fellner opened issue #11045: Fish + starship does not play well with iTerm2 reuse previous's Sessions directory at George Nachman / iterm2

Sebastian Fellner
2023-08-03T14:28:49Z

Thanks for filing an issue! Please answer the questions below so I can help you.

iTerm2 version: 3.4.19

OS version: mac os 13.5 (22G74)

Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)

Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog

com.googlecode.iterm2.plist

Attach a screen capture video if it would make the reproduction steps clearer.

Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at HowToSample

Are you reporting a crash? Please attach the crash log. Instructions at crash logs

Are you reporting excessive memory usage? Please attach a heap analysis: heapshot

PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.

Detailed steps to reproduce the problem: 1. 2. 3.

use fish

enable 'reuse previous's Sessions directory' option

works

run 'builtin functions -e fish_mode_prompt' in your cli

does not work anymore

you can find that behaviour in the video. The command builtin functions -e fish_mode_prompt is part of starship, and I was able to debug it to this line. Could you help me resolve this? I would love to use this feature! any input welcome (:

What happened:

directory was not restored

What should have happened:

directory should have been restored