mirror of
https://github.com/balkian/dotfiles.git
synced 2024-12-23 09:08:13 +00:00
12 lines
280 B
Plaintext
12 lines
280 B
Plaintext
|
#!/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 "$@")
|
||
|
|
||
|
pass -c "$password"
|