Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Alias named '='
- X-seq: zsh-users 22920
- From: René Neumann <lists@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Alias named '='
- Date: Sun, 8 Oct 2017 10:03:52 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi all,
I stumbled upon the idea to define a function '=' to have an inline
calculator in zsh [1].
As multiplication is a normal operation, I also want 'noglob' behavior.
There seems to be no way of defining this for a function (or is there?),
so the only way would be to haven an alias
alias '='='noglob ='
But this seems to not be possible, yielding 'bad assignment': The alias
command seems to hard-parse until the first equal-sign -- even tricks like
alias $'\u3D'='noglob ='
do not work.
Does anyone know a trick that could be used here?
Best regards,
René
[1] https://github.com/arzzen/calc.plugin.zsh
Messages sorted by:
Reverse Date,
Date,
Thread,
Author