add host to the status line

pull/137/head
Simon Let 6 years ago
parent 643805e245
commit a34b4b2d88
  1. 2
      cmd/cli/item.go

@ -110,7 +110,7 @@ func (i item) drawStatusLine(compactRendering bool, printedLineLength, realLineL
pwdTilde := strings.Replace(i.pwd, i.home, "~", 1) pwdTilde := strings.Replace(i.pwd, i.home, "~", 1)
separator := " " separator := " "
stLine := timeString + separator + pwdTilde + separator + i.cmdLine stLine := timeString + separator + i.host + ":" + pwdTilde + separator + i.cmdLine
return splitStatusLineToLines(stLine, printedLineLength, realLineLength) return splitStatusLineToLines(stLine, printedLineLength, realLineLength)
} }

Loading…
Cancel
Save