diff options
-rwxr-xr-x | .local/bin/lpass | 5 |
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 |