From 023941a57c8952021a91f50bc06d19804777e007 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Fri, 1 May 2020 13:46:56 +0200 Subject: [PATCH] make host+pwd shorter --- cmd/cli/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cli/item.go b/cmd/cli/item.go index 54e9fa3..44ebe90 100644 --- a/cmd/cli/item.go +++ b/cmd/cli/item.go @@ -176,7 +176,7 @@ func newItemFromRecordForQuery(record records.EnrichedRecord, query query, debug location += record.Host + ":" locationWithColor += highlightHost(record.Host) + ":" } - const locationLenght = 35 + const locationLenght = 30 // const locationLenght = 20 // small screenshots pwdLength := locationLenght - len(location) pwdTilde := strings.Replace(record.Pwd, record.Home, "~", 1)