mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Support fish when running shell command
This should allow using custom shell functions in lazygit's : prompt.
This commit is contained in:
parent
08751d6b60
commit
f28b6f439d
|
|
@ -16,7 +16,9 @@ func GetPlatform() *Platform {
|
||||||
interactiveShellArg := "-i"
|
interactiveShellArg := "-i"
|
||||||
interactiveShellExit := "; exit $?"
|
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"
|
interactiveShell = "bash"
|
||||||
interactiveShellArg = ""
|
interactiveShellArg = ""
|
||||||
interactiveShellExit = ""
|
interactiveShellExit = ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue