scripts: add pass export script

This commit is contained in:
Leonardo Eugênio 2024-05-27 00:10:11 -03:00
parent a30f87ec71
commit 2215da6dc5
2 changed files with 11 additions and 0 deletions

10
scripts/pass-export Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
if test -z "$PASSWORD_STORE_DIR"; then
PASSWORD_STORE_DIR="$HOME/.password-store"
fi
pass2csv "$PASSWORD_STORE_DIR" "$HOME/passwords.csv" \
-f User '(user|login)(:\s*)?' \
-f TOTP 'otpauth(:)?' \
-f URL 'url(:\s*)?'