Skip to content

Commit

Permalink
fix(transient): do not run when no config
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Sep 9, 2021
1 parent 13cb9a6 commit 78d0a42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine.go
Expand Up @@ -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 }}> "
Expand Down

0 comments on commit 78d0a42

Please sign in to comment.