Z-Shell Calculator: Zcalc

A useful function in the z-shell is zcalc. It needs to be autoloaded before use:

autoload -Uz zcalc
zcalc

To add hexdecimal numbers, set the default output to base 16 and prepend 0x to the inputs:

1> [#16] 0x1 + 0x5
16#6