3 ms·
I wrote a simple oh-my-zsh (but should be easy to port out) plugin to improve UX of the environment variables option [0]. It's basically a very simple secrets m
by HangoverMaster 5y ago
I wrote a simple oh-my-zsh (but should be easy to port out) plugin to improve UX of the environment variables option [0]. It's basically a very simple secrets manager, allowing one to store env variables (or whole chunks of scripts) in GPG-encrypted files and see if any secrets are sourced at the moment.
So the workflow usually looks like following:
$ secrets aws-credentials # prompts a GPG passphrase
$ aws s3 sync ...
[0] https://github.com/chuwy/zsh-secrets https://github.com/chuwy/zsh-secrets
- stevekemp 5y agoIf you use `pass` I wrote a little plugin to export the values as environmental variables in a simple and consistent fashion: https://blog.steve.fi/password_store_plugin__env.html https://blog.steve.fi/password_store_plugin__env.html
- pablovidal85 5y agoNice, I do this via a small script: env $(pass env/$1) ${@:2}