mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Fix LocalUsername for imported history entries since Name is the user's full name on MacOS (#270)
This commit is contained in:
parent
7868de9c0b
commit
91e6f92a86
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user