Fix LocalUsername for imported history entries since Name is the user's full name on MacOS (#270)

This commit is contained in:
David Dworken 2024-12-29 17:34:04 -08:00 committed by GitHub
parent 7868de9c0b
commit 91e6f92a86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",