Exclude cmds from the histogram

This commit is contained in:
Santiago Lo Coco 2022-07-21 09:03:36 -03:00
parent 57a911cd94
commit d2f18a78f7
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ awk -v histfile=$historyfile '
}
{
if ($0 != "poweroff" && $0 != "reboot" && $0 != "suspendSystem") {
history[$0]++
}
print
}