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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay