Calc Macos

calc-macos
By Tashima42

Espanso package for doing basic arithmetic in the shell.

utility
math
calculator

Paste this command in a terminal to install the package

espanso install calc-macos
Source
package.yml
# Calculator name: calc-macos parent: default matches: # Calculator - trigger: ":calc" replace: "{{solved}}" vars: - name: "input" type: "form" params: layout: | [[val]] - name: "solved" type: shell params: cmd: "echo '{{input.val}}' | bc" # Calculator w/ input - trigger: ":ecalc" replace: "{{input.val}} = {{solved}}" vars: - name: "input" type: "form" params: layout: | [[val]] - name: "solved" type: shell params: cmd: "echo '{{input.val}}' | bc"