mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-23 23:39:02 +01:00
Skip presaving the presave command, since it is currently spamming the recorded history entries in bash
This commit is contained in:
parent
216803f325
commit
69047109ac
@ -108,6 +108,11 @@ func presaveHistoryEntry(ctx context.Context) {
|
||||
entry.StartTime = time.Unix(startTime, 0).UTC()
|
||||
entry.EndTime = time.Unix(0, 0).UTC()
|
||||
|
||||
// Skip saving references to presaving
|
||||
if strings.Contains(entry.Command, "presaveHistoryEntry") {
|
||||
return
|
||||
}
|
||||
|
||||
// And persist it locally.
|
||||
db := hctx.GetDb(ctx)
|
||||
err = lib.ReliableDbCreate(db, *entry)
|
||||
|
Loading…
Reference in New Issue
Block a user