18 lines
274 B
Bash
Executable file
18 lines
274 B
Bash
Executable file
#!/bin/sh
|
|
|
|
folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | fuzzel -d)"
|
|
|
|
if [ -z $folder ];
|
|
then
|
|
exit
|
|
fi
|
|
|
|
choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | fuzzel -d)"
|
|
|
|
if [ -z $choice ];
|
|
then
|
|
exit
|
|
fi
|
|
|
|
wtype -d 10 "$(pass otp "$folder/$choice")"
|