By far not as sophisticated as the other posts here, but here’s one I use very often:
alias hg=‘history 1 | grep $1’
Allows me to easily find previous commands. E.g. the complicated pacman command I used two months ago:
hg pacman
By far not as sophisticated as the other posts here, but here’s one I use very often:
alias hg=‘history 1 | grep $1’
Allows me to easily find previous commands. E.g. the complicated pacman command I used two months ago:
hg pacman