Update otp entry fmt

This commit is contained in:
Alex D. 2021-04-12 11:07:44 +00:00
parent cb9b0d755d
commit b3baccf927
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
FILES=(~/.password-store/**/*.gpg)
PASS="$(for i in $FILES; do print ${${i#*/.password-store/}%.gpg}; done | dmenu -i -l 30 -p 'Password/OTP')"
[ ! -z $PASS ] && pass $([ -z ${PASS#*-otp} ] && <<< otp) $PASS -c
[ ! -z $PASS ] && pass $([ -z ${PASS#*/otp} ] && <<< otp) $PASS -c