better query for key

This commit is contained in:
Felix Van der Jeugt 2018-09-13 09:44:35 +02:00
parent f93881ca25
commit a4ec59a8fd
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -6,7 +6,8 @@ key="$(cd ~/.password-store; find * -name '*.gpg' -exec basename \{\} \; | sed '
[ -z "$key" ] && exit
key="$(cd ~/.password-store; find * -name '*'"$key"'*' | sed 's/\.gpg$//')"
key="$(cd ~/.password-store; find * -name "$key"'.*' | sed 's/\.gpg$//')"
xdotool type --clearmodifiers --window "$window" "$(pass show "$key" | head -1)"
xdotool windowfocus "$window"