1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-22 12:12:28 +00:00
dotfiles/bin/passmenu

12 lines
280 B
Plaintext
Raw Normal View History

2014-06-26 16:07:56 +00:00
#!/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"