diff options
| -rw-r--r-- | mkshrc | 6 | ||||
| -rw-r--r-- | shell/utils | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -219,6 +219,12 @@ checkSSHAgent() { fi } +passenv() { + _f="$(mktemp)" + pass "$@" > "$_f" + . "$_f" + rm -f "$_f" +} setcolorterminal() { 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" +} |
