mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
parent
39dfca93c6
commit
78038aa5aa
|
@ -48,7 +48,10 @@ func getExecutablePath(shell string) (string, error) {
|
|||
executable = strings.ReplaceAll(executable, "\\", "/")
|
||||
switch shell {
|
||||
case bash, zsh:
|
||||
return strings.ReplaceAll(executable, " ", "\\ "), nil
|
||||
executable = strings.ReplaceAll(executable, " ", "\\ ")
|
||||
executable = strings.ReplaceAll(executable, "(", "\\(")
|
||||
executable = strings.ReplaceAll(executable, ")", "\\)")
|
||||
return executable, nil
|
||||
}
|
||||
return executable, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue