summaryrefslogtreecommitdiff
path: root/pkg/prompt/main.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-08-19 18:53:30 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-08-19 18:57:37 +0200
commit5d3e00dcb39a2d87919ea40bf144b4579c86c365 (patch)
tree139f9497a8e96fa4b20d3950fb563198f947edf5 /pkg/prompt/main.go
parent9f482b7644238feadec16337f8b0201c8833fd34 (diff)
downloadgofu-5d3e00dcb39a2d87919ea40bf144b4579c86c365.tar.gz
prettyprompt: show $TERM if not xterm-256color
Diffstat (limited to 'pkg/prompt/main.go')
-rw-r--r--pkg/prompt/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/prompt/main.go b/pkg/prompt/main.go
index 4146b73..728f2f2 100644
--- a/pkg/prompt/main.go
+++ b/pkg/prompt/main.go
@@ -37,6 +37,7 @@ func Exec() int {
cwd := CurrentDirectory()
fields = appendUnlessEmpty(fields, getDirectoryField(cwd))
fields = appendUnlessEmpty(fields, getDeletedMessageField(cwd))
+ fields = appendUnlessEmpty(fields, getTerminalField())
line := strings.Join(fields, " ")
lineWidth := getPrintableLength(line)