6 lines
223 B
Bash
6 lines
223 B
Bash
|
#!/bin/zsh
|
||
|
|
||
|
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
|