mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -08:00
fix(transient): do not run when no config
This commit is contained in:
parent
13cb9a6a58
commit
78d0a42556
|
@ -219,6 +219,9 @@ func (e *engine) renderTooltip(tip string) string {
|
|||
}
|
||||
|
||||
func (e *engine) renderTransientPrompt() string {
|
||||
if e.config.TransientPrompt == nil {
|
||||
return ""
|
||||
}
|
||||
promptTemplate := e.config.TransientPrompt.Template
|
||||
if len(promptTemplate) == 0 {
|
||||
promptTemplate = "{{ .Shell }}> "
|
||||
|
|
Loading…
Reference in a new issue