Skip to content

Instantly share code, notes, and snippets.

@smeech
Last active March 5, 2025 23:08
Show Gist options
  • Select an option

  • Save smeech/1922c9a1d41fa95a727016dc76f5f174 to your computer and use it in GitHub Desktop.

Select an option

Save smeech/1922c9a1d41fa95a727016dc76f5f174 to your computer and use it in GitHub Desktop.
[Input from file] Trigger to read input from a file. #espanso #bash
# Trigger to read input from a file
matches:
- trigger: :test
replace: "{{output}}"
vars:
- name: output
type: shell
params:
# cmd: echo $(</home/$USER/temp/br.txt) # Strips out newlines
cmd: cat /home/$USER/temp/br.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment