Re: A ZLE widget for calculator

Anssi Saari <[email protected]> Fri, 10 Jul 2026 11:25:09 +0300
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Organization An impatient and LOUD arachnid
Message-ID <[email protected]>
"Mathias M." <[email protected]> writes:

> Also, your github (https://github.com/vincentbernat/zshrc) seems to be a
> real goldmine for all kind of nifty zsh stuff. Especially for dum dums
> like me who are overwhelmed by the zsh documentation when it goes beyond
> the simple stuff.

Late to the party but seconded. I really like the use of

if (( $+commands[foo] )); then

to see if command foo is available. Although my related use case was to
figure out which version of more was installed and adjust an alias based
on that. But then I realized I can just use less -iX -E -R instead.