You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Damn, this whole "use an interactive shell for running custom commands" feature keeps causing problems. A similar error happens with nushell.
A workaround could be to define an alias or function for lazygit that exports SHELL=/bin/bash before calling lazygit.
As for a fix, maybe we should look at the $SHELL variable and only do the interactive thing if it ends with either /bash or /zsh (any others that are commonly used?), and fall back to calling bash (without -i) if not.
I'll do the shell export thing for now as a workaround, thanks for the suggestion.
I also noticed an occasional command failure when doing a lazygit amend operation that seemed to be similarly shell related – I'll post if it pops up again.
These kind of issues do make me consider switching back to zsh 😅
To Reproduce
Run a custom shell command with
fish
set as shell.iTerm2.2025-01-07.at.09.18.34.mp4
The text was updated successfully, but these errors were encountered: