How do you manage your zsh aliases?

Solution 1:

Here's what I choose as a solution. I found this helps keep my initial .zshrc file free of clutter.

Place the aliases in their own file, ie: .zsh_aliases. You can also create a file for other things, like app shortcuts.

From there, just add a line in your .zshrc like the following;

source ~/.zsh_aliases

Feel free to reference any file that you might create. They will be included in each session. When moving to another machine, I just copy the files over and add them.