blob: bfb687b1f237102352de8c76bc7604f458d964ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Pick a pass(1) password with dmenu(1)
self=dmenu_pass
cd -- "${PASSWORD_STORE_DIR:-"$HOME"/.password-store}" || exit
# shellcheck disable=SC2016
name=$(
find . -name \*.gpg ! -type d |
sed -e 's_^\./__' -e 's_\.gpg$__' |
LC_ALL=C sort -f |
dmenu
)
pass show --clip -- "$name" || exit
notify-send --app-name="$self" -- \
"Password saved to CLIPBOARD" \
"$name"
|