I am writing a utility which lets you set shell aliases persistently.
I have it in my head that unix shell aliases are POSIX compliant, but I can’t remember where I heard this and my google fu has not yielded any definitive answer.
Most of my experience is with zsh and bash.
Is it safe to assume that if I write aliases in the format of specified by both bash and zsh, that I’ll be able to port this format over to other shells?
alias(andunalias) are indeed in POSIX.See also alias substitution and alias names for how they are supposed to be implemented.