aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-10-14 10:25:04 +0200
committerPatrick Spek <p.spek@tyil.nl>2019-10-14 10:25:04 +0200
commita8487d699bf8dee5a792d0207bd64b358488f2ed (patch)
treea8295f6aae4cefcd0bd225ef57905bcc97269a3c /.local
parentced130aaada8648aff9598687fa3dbf8b52e1077 (diff)
Make lpass wrapper use a longer timeout for sessions
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/lpass5
1 files changed, 4 insertions, 1 deletions
diff --git a/.local/bin/lpass b/.local/bin/lpass
index 1362ad1..ff2b076 100755
--- a/.local/bin/lpass
+++ b/.local/bin/lpass
@@ -7,10 +7,13 @@ main()
# Password is stored in pass, read it from there when trying to login
if [ "$1" = "login" ]
then
- export LPASS_DISABLE_PINENTRY=1
shift
+ export LPASS_DISABLE_PINENTRY=1
+ export LPASS_AGENT_TIMEOUT=86400
+
pass show "websites/lastpass.com/$1" | "$BIN" login --trust "$@"
+
return
fi