Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Alias named '='



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