Enhanced bash history related operations

[!] Check comments