I have an alias to do quick searchs on my terminal history by just typing h + search pattern.
alias h='history | /usr/bin/grep '
It works like it should, but I can't add more search patterns without adding more greps
instances.
e. g. h pacman | grep wine
I want to adapt it to convert other possible arguments to search pattern.
e. g. h pacman wine
Obs.: I know there are out of the box solutions to achieve that, but since I have no idea how to do it, I want to learn.