diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2017-08-19 18:53:30 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2017-08-19 18:57:37 +0200 |
| commit | 5d3e00dcb39a2d87919ea40bf144b4579c86c365 (patch) | |
| tree | 139f9497a8e96fa4b20d3950fb563198f947edf5 /pkg/prompt/main.go | |
| parent | 9f482b7644238feadec16337f8b0201c8833fd34 (diff) | |
| download | gofu-5d3e00dcb39a2d87919ea40bf144b4579c86c365.tar.gz | |
prettyprompt: show $TERM if not xterm-256color
Diffstat (limited to 'pkg/prompt/main.go')
| -rw-r--r-- | pkg/prompt/main.go | 1 |
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) |
