mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue