Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alias hygiene
Ray Andrews wrote on Sat, 17 Feb 2018 07:20 -0800:
> Thanks. There's a lot of homework in your post, I'll get on it. For now
> I take it that one can legitimately have an alias definition conditional
> on some test, at least in theory,
Yes. Example:
case $OSNAME in
(linux*) alias ls='ls --color';;
(freebsd*) alias ls='ls -G';;
esac
> however much the alias itself could
> stand improvement. The hidden danger of course is that one might do
> something that seems to work at the time but that is fundamentally
> flawed and liable to blow up later.
Yes.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author