Shell Extension

PHOTO EMBED

Mon Dec 05 2022 21:13:09 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191

- trigger: ":ip"
  replace: "{{output}}"
  vars:
    - name: output
      type: shell
      params:
        cmd: "curl 'https://api.ipify.org'"
content_copyCOPY

Similar to the Script Expansion, this is use to execute a script, in this case will be a shell command. this will get the IP address with ipify. We can choose the Shell: On Windows: cmd, powershell, wsl. On macOS: sh, bash. On Linux: sh, bash.

https://cubevic.github.io/My_notes/Miscellaneous/Espanso.html