mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-21 04:17:45 +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
|
// quite slow, so this makes imports considerably faster
|
||||||
entryId := importEntryId + fmt.Sprintf("%d", numEntriesImported)
|
entryId := importEntryId + fmt.Sprintf("%d", numEntriesImported)
|
||||||
entry := normalizeEntryTimezone(data.HistoryEntry{
|
entry := normalizeEntryTimezone(data.HistoryEntry{
|
||||||
LocalUsername: currentUser.Name,
|
LocalUsername: currentUser.Username,
|
||||||
Hostname: hostname,
|
Hostname: hostname,
|
||||||
Command: cmd,
|
Command: cmd,
|
||||||
CurrentWorkingDirectory: "Unknown",
|
CurrentWorkingDirectory: "Unknown",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user