blob: e1affd1c3bdc7e8615d310ae0e5e288f1309f4b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# 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
|