diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-11-15 19:04:40 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-11-15 19:04:40 -0500 |
| commit | d70dc75744485fb69768b8c3f012ee0aa074a469 (patch) | |
| tree | c6a1474f9ee43720c22914ddddbe5b094ea0965b /shell/utils | |
| parent | acafc0b128c52a8535f3190462fc2ff6cc189c06 (diff) | |
| download | dotfiles-d70dc75744485fb69768b8c3f012ee0aa074a469.tar.gz dotfiles-d70dc75744485fb69768b8c3f012ee0aa074a469.tar.xz | |
Add in a shell function to source the contents of a pass entry
Diffstat (limited to 'shell/utils')
| -rw-r--r-- | shell/utils | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/utils b/shell/utils index 3822ca2..2c45194 100644 --- a/shell/utils +++ b/shell/utils @@ -127,4 +127,10 @@ checkSSHAgent() { fi } +passenv() { + _f="$(mktemp)" + pass "$@" > "$_f" + . "$_f" + rm -f "$_f" +} |
