Tac
A while ago, I was trying to fix a bug in the fzf plugin where it would treat multi-line code blocks as individual lines. The solution proposed by a user was to use cat to print out the history file and sed to clean up the results. This worked fine, since the history file was plain text.
Get Jethro Kuan’s stories in your inbox
Join Medium for free to get updates from this writer.
I realized after a short period of usage that the history seemed reversed. I did some googling, and found tac.
tac is packaged with coreutils and is used to concatenate and print files in reverse. This came in extremely handy in this situation! What a gem.






