Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Prefix clipboard content lines with (A), (B), etc. using Zsh
- # Espanso
- - trigger: :test
- replace: '{{output}}'
- vars:
- - name: clipb
- type: clipboard
- - name: output
- type: shell
- params:
- shell: bash
- cmd: |
- setopt KSH_ARRAYS
- prefixes=({A..Z}); i=0
- echo "{{clipb}}" | while read -r line; do
- echo "(${prefixes[i]}) $line"
- ((i++))
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement