From: Anssi Saari <as@sci.fi>
To: zsh-workers@zsh.org
Cc: zsh-users@zsh.org
Subject: Re: Best practices for managing aliases in ohmyzsh?
Date: Tue, 31 Aug 2021 11:06:49 +0300 [thread overview]
Message-ID: <sm0fsuqujfq.fsf@lakka.kapsi.fi> (raw)
In-Reply-To: <41fa241f119fdb9b8598293aad345823@dondley.com>
Steve Dondley <s@dondley.com> 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.
parent reply other threads:[~2021-08-31 9:20 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <41fa241f119fdb9b8598293aad345823@dondley.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sm0fsuqujfq.fsf@lakka.kapsi.fi \
--to=as@sci.fi \
--cc=zsh-users@zsh.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).