Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Aliases that ignore "noaliases"
- X-seq: zsh-workers 52866
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Aliases that ignore "noaliases"
- Date: Mon, 1 Apr 2024 12:59:09 -0700
- Archived-at: <https://zsh.org/workers/52866>
- List-id: <zsh-workers.zsh.org>
There are some cases where it would be nice to be able to declare an
alias that "always works". The most obvious recent example would be
alias nameref='typeset -n'
but also some hackiness in zsh/param/private could be avoided with
alias private='local -P'
This is important when the alias invokes a keyword rather than a builtin, e.g.
function private { local -P "$@" }
doesn't parse its argument list the same way. There are some other
instances where an internally-defined alias that (in particular)
survives "autoload -U" might be useful.
Any thoughts?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author