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

Re: A ZLE widget for calculator



"Mathias M." <mma@xxxxxxxxxxxxx> 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. 






Messages sorted by: Reverse Date, Date, Thread, Author