SHARE WITH THE CLASS: What aliases are you using?
SHARE WITH THE CLASS: What aliases are you using?
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
You're viewing a single thread.
View all comments
114
comments
alias hgrep='function _f(){ history | grep $1; };_f'
Because I'm to lazy to type
history | grep whatever_I'm_looking_for
5 0 Replyalias rpmfind='rpm -qa | grep'
2 0 ReplyOMG. 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.
2 0 Reply
You've viewed 114 comments.
Scroll to top