From 91e6f92a867a5fb216ba69d16f1e475ab0327b58 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 29 Dec 2024 17:34:04 -0800 Subject: [PATCH] Fix LocalUsername for imported history entries since Name is the user's full name on MacOS (#270) --- client/lib/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/lib.go b/client/lib/lib.go index 9450f0a..209c281 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -284,7 +284,7 @@ func ImportHistory(ctx context.Context, shouldReadStdin, force bool) (int, error // quite slow, so this makes imports considerably faster entryId := importEntryId + fmt.Sprintf("%d", numEntriesImported) entry := normalizeEntryTimezone(data.HistoryEntry{ - LocalUsername: currentUser.Name, + LocalUsername: currentUser.Username, Hostname: hostname, Command: cmd, CurrentWorkingDirectory: "Unknown",