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