Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
you can get a lot of the way there with Control+R reverse history search (mentioned in the article) – and it’s interactive. With fzf you can even get fuzzy history searching (the first search result has a video). atuin puts history into a proper db, optional syncs across hosts, and, like fzf, enhances control+r
Here’s something I use to search history for commands or keywords. I have this as a function in my profile:
function hgr() { history | grep "$1" }
h
istorygr
epUsage:
hgr git
to search for commands containinggit
.Someone more knowledgeable may be able to point out ways to improve this.
you can get a lot of the way there with Control+R reverse history search (mentioned in the article) – and it’s interactive. With
fzf
you can even get fuzzy history searching (the first search result has a video).atuin
puts history into a proper db, optional syncs across hosts, and, like fzf, enhances control+r