Skip to content

Instantly share code, notes, and snippets.

@lajlev
Last active October 21, 2021 06:10
Show Gist options
  • Save lajlev/54b3f67db64c34a993500e263c381681 to your computer and use it in GitHub Desktop.
Save lajlev/54b3f67db64c34a993500e263c381681 to your computer and use it in GitHub Desktop.
Use Espanso as password expander
## Steps
1. Add password to keychain (Screenshot: https://u.lillefar.dk/q2BI5m)
2. Add snippet to espanso config file (default.yml) where some-password i identical to account name for your keychain.
```
- triggers: [":pass:"]
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "security find-generic-password -a 'some-password' -w"
```
3. First time you run the expander you will be required to enter your macos password.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment