mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02: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
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