139
submitted 1 year ago* (last edited 1 year ago) by macallik@kbin.social to c/linux@lemmy.ml

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 are viewing a single comment's thread
view the rest of the comments
[-] OpticalMoose@discuss.tchncs.de 5 points 1 year ago

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

Because I'm to lazy to type

history | grep whatever_I'm_looking_for

[-] Pantherina@feddit.de 2 points 1 year ago* (last edited 1 year ago)
alias rpmfind='rpm -qa | grep'
[-] OpticalMoose@discuss.tchncs.de 2 points 1 year ago

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.

this post was submitted on 20 Sep 2023
139 points (97.9% liked)

Linux

48366 readers
1692 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS