aboutsummaryrefslogtreecommitdiff
path: root/shell/utils
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-11-15 19:04:40 -0500
committerMitch Riedstra <mitch@riedstra.us>2019-11-15 19:04:40 -0500
commitd70dc75744485fb69768b8c3f012ee0aa074a469 (patch)
treec6a1474f9ee43720c22914ddddbe5b094ea0965b /shell/utils
parentacafc0b128c52a8535f3190462fc2ff6cc189c06 (diff)
downloaddotfiles-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/utils6
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"
+}