mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 08:06:25 -04:00
Support fish when running shell command (#4350)
- **PR Description** This should allow using custom shell functions in lazygit's : prompt. Fixes #4342.
This commit is contained in:
commit
ddc14ef674
|
|
@ -16,7 +16,9 @@ func GetPlatform() *Platform {
|
|||
interactiveShellArg := "-i"
|
||||
interactiveShellExit := "; exit $?"
|
||||
|
||||
if !(strings.HasSuffix(shell, "bash") || strings.HasSuffix(shell, "zsh")) {
|
||||
if strings.HasSuffix(shell, "fish") {
|
||||
interactiveShellExit = "; exit $status"
|
||||
} else if !(strings.HasSuffix(shell, "bash") || strings.HasSuffix(shell, "zsh")) {
|
||||
interactiveShell = "bash"
|
||||
interactiveShellArg = ""
|
||||
interactiveShellExit = ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue