DEV Community

Tom
Tom

Posted on

What was my alias again?

Often I found myself looking in ~/.zshrc to find out what alias exactly I have defined for some task. That can be done easier. The bash command alias lists all your aliases. My list of aliases is quite long, so I find my alias this way:

alias | grep some-name
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
mattother profile image
mattother

Nice tip. Am I the only one that literally read the title of this to the Blink 182 song though? And the fact that your name is Tom was just icing on the cake.

Collapse
 
ludder profile image
Tom

I didn't think of Blink 182 when I wrote that title, but now I can't get the song out of my head ;)