mirror of https://github.com/balkian/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
285 B
Plaintext
12 lines
285 B
Plaintext
10 years ago
|
#!/bin/bash
|
||
|
|
||
|
shopt -s nullglob globstar
|
||
|
|
||
|
password_files=( ~/.password-store/**/*.gpg )
|
||
|
password_files=( "${password_files[@]##*/.password-store/}" )
|
||
|
password_files=( "${password_files[@]%.gpg}" )
|
||
|
|
||
|
password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
|
||
|
|
||
9 years ago
|
pass show -c "$password"
|