SHARE WITH THE CLASS: What aliases are you using?

macallik@kbin.social to Linux@lemmy.ml – 139 points –

From bash to zsh and everywhere in between, show me yours and I'll show you mines. Inspire others or get some feedback.

Simply copy & paste the output of alias in your terminal or add some comments to explain things for others.

Edit: Kbin users, click 'More' on a comment and use the fediverse link to read responses that have funky formatting

114

You are viewing a single comment

alias hgrep='function _f(){ history | grep $1; };_f'

Because I'm to lazy to type

history | grep whatever_I'm_looking_for

alias rpmfind='rpm -qa | grep'

OMG. I originally got the impression (from somewhere) that you couldn't pass arguments to an alias, so I googled and found that weird function nonsense. Oh well, live and learn. Thanks.