Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Best practices for managing aliases in ohmyzsh?
- X-seq: zsh-workers 49339
- From: Anssi Saari <as@xxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: zsh-users@xxxxxxx
- Subject: Re: Best practices for managing aliases in ohmyzsh?
- Date: Tue, 31 Aug 2021 11:06:49 +0300
- Archived-at: <https://zsh.org/workers/49339>
- Cancel-lock: sha1:FBkm8kiBkORw2s+CKpfYl/JwcP0=
- List-id: <zsh-workers.zsh.org>
- Organization: An impatient and LOUD arachnid
- References: <41fa241f119fdb9b8598293aad345823@dondley.com>
Steve Dondley <s@xxxxxxxxxxx> writes:
> I switched to zsh last week and learning the ropes. My .zshrc is
> quickly growing out of hand.
>
> I'm using omyzsh and just learned that functions should got into a
> ~/.oh-my-zsh/functions where they are autoloaded.
>
> Now I'm wondering if there is some similar mechanism for adding
> aliases with ohmyzsh. If not, what's everyone else doing who has a
> couple hundred aliases.
I'm a little curious, how do you remember a couple hundred aliases? I
just took a look, I have 61 but with a quick and generous count I think
I use at most 23 of those even occasionally. Some of the aliases are
really old, like, say an alias to backup my Palm Pilot? Um. I guess I
should really clean up here.
But, I have a global zshrc that has my common settings and functions and
most common aliases too and then a few more in ~/.aliases.zsh which I
source from the main zshrc if it exists.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author