HEX
Server: Apache
System: Linux iad1-shared-b8-33 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: samfetchero1 (10301780)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/zsh/functions/Zle/zcalc-auto-insert
# Bind to a binary operator keystroke for use with zcalc
# Not useful in RPN mode.

if [[ -n $ZCALC_ACTIVE && $ZCALC_ACTIVE != rpn ]]; then
  if [[ $CURSOR -eq 0 || $LBUFFER[-1] = "(" ]]; then
    LBUFFER+=${ZCALC_AUTO_INSERT_PREFIX:-"ans "}
  fi
fi
zle .self-insert