DEV Community

HaxNet
HaxNet

Posted on

1

Alias

if you are like me and you are always typing the same thing over and over on terminal. You might as well use alias aka shortcuts

I use zsh as my shell so I would go to .zshrc config file to add my personal alias.

so whenever I want to edit my zshrc
I just add this simple text

alias zshconfig='vim ~/.zshrc'

so when I am in my terminal, I just type zshconfig and it would automatically run the command.

I like to clear my terminal a lot and go back to Home, so instead of typing clear && cd

I made this shortcut

alias cclear='clear && cd'

now i just type in cclear and it does both commands for me automatically.

If you forget what aliases you have, go into terminal and type alias

Hope this helps!

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more