From a8487d699bf8dee5a792d0207bd64b358488f2ed Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 14 Oct 2019 10:25:04 +0200 Subject: Make lpass wrapper use a longer timeout for sessions --- .local/bin/lpass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.local/bin') 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 -- cgit v1.1