2 # A POSIX compliant reimplementation of passmenu. Derived from:
3 # https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu
6 if [ "$1" = "--type" ]; then
11 prefix=${PASSWORD_STORE_DIR-~/.password-store}
12 password=$(find $prefix -name '*.gpg' | awk -v prefix="$prefix" \
13 '{len = length(prefix) + 2; print substr($0, len, length($0) - len - 3)}' \
16 [ -n $password ] || exit
18 if [ $typeit -eq 0 ]; then
19 pass show -c "$password" 2>/dev/null
21 pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } |
22 xdotool type --clearmodifiers --file -