Last active
March 5, 2025 23:08
-
-
Save smeech/1922c9a1d41fa95a727016dc76f5f174 to your computer and use it in GitHub Desktop.
[Input from file] Trigger to read input from a file. #espanso #bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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