1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-13 00:02:28 +00:00
dotfiles/bin/passmenu
2015-03-10 17:47:18 +01:00

12 lines
284 B
Bash
Executable File

#!/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 "$password" | xsel