From d70dc75744485fb69768b8c3f012ee0aa074a469 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 15 Nov 2019 19:04:40 -0500 Subject: Add in a shell function to source the contents of a pass entry --- shell/utils | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shell') 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" +} -- cgit v1.2.3