cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.76k stars 176 forks source link

McFly broken in VSCode terminal after new shell integration #277

Closed agawley closed 1 year ago

agawley commented 1 year ago

VSCode just rolled out a new shell integration in the built in terminal. After enabling it (I believe it is now enabled by default BTW) I get a McFly error complaining it can't find the $HISTFILE.

The setting: "terminal.integrated.shellIntegration.enabled": true,

The error: McFly: /var/folders/sj/j72mhwmd1dd4_66xkl1pzsn40000gn/T/vscode-zsh/.zsh_history does not exist or is not readable. Please fix this or set HISTFILE to something else before using McFly.

Changing the setting to false makes the error go away, but as I say, I think true is the default now

cantino commented 1 year ago

Duplicate of https://github.com/cantino/mcfly/issues/273. Since we use a PROMPT_COMMAND (in Bash), VSCode's terminal might not work there. For zsh, I'd think it would work if you set a HISTFILE in the settings? I don't use VSCode, so I'm not sure.

agawley commented 1 year ago

Closing in favour of #273