config/espanso/match: create separate pass config

This commit is contained in:
xeruf 2022-04-29 09:46:52 +02:00
parent 06b2c129a4
commit 5ba8b28fec
2 changed files with 123 additions and 123 deletions

View File

@ -1,7 +1,6 @@
# Automatically generated by espanso migration tool
# Original file: default.yml
matches: matches:
- trigger: ":see"
replace: "🙈"
- trigger: ":grue" - trigger: ":grue"
replace: |- replace: |-
Grüße, Grüße,
@ -25,123 +24,3 @@ matches:
type: shell type: shell
params: params:
cmd: "curl 'https://api.ipify.org'" cmd: "curl 'https://api.ipify.org'"
# Sensitive data through pass
- trigger: ":ep"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/personal
- trigger: ":ec"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/church
- trigger: ":eu"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/uni
- trigger: ":eaur"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/aur
- trigger: ":a0"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address | head -1
- trigger: ":a1"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address | head -2 | tail -1
- trigger: ":as"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass info/address | head -2 | tail -1 | cut -d' ' -f1"
- trigger: ":a2"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address | tail -1
- trigger: ":ap"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass info/address | tail -1 | cut -d' ' -f1"
- trigger: ":ac"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass info/address | tail -1 | cut -d' ' -f2"
- trigger: ":tel"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/phone
- trigger: ":adt"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address-bt
- trigger: ":add"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address
- trigger: ":tax"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/tax-id | head -1
- trigger: ":ss"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/social-security | head -1
- trigger: ":sign"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/signature
- trigger: ":iban"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/banking/dkb | head -1

View File

@ -0,0 +1,121 @@
# Sensitive data through pass
matches:
- trigger: ":ep"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/personal
- trigger: ":ec"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/church
- trigger: ":eu"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/uni
- trigger: ":eaur"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/email/aur
- trigger: ":a0"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address | head -1
- trigger: ":a1"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address | head -2 | tail -1
- trigger: ":as"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass info/address | head -2 | tail -1 | cut -d' ' -f1"
- trigger: ":a2"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address | tail -1
- trigger: ":ap"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass info/address | tail -1 | cut -d' ' -f1"
- trigger: ":ac"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass info/address | tail -1 | cut -d' ' -f2"
- trigger: ":tel"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/phone
- trigger: ":adt"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address-bt
- trigger: ":add"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/address
- trigger: ":tax"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/tax-id | head -1
- trigger: ":ss"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/social-security | head -1
- trigger: ":sign"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/signature
- trigger: ":iban"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: pass info/banking/dkb | head -1