1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-24 05:02:29 +00:00
dotfiles/scripts/.bin/passmenu
J. Fernando Sánchez fc8c11d360 New config
2015-09-18 02:14:17 +02:00

12 lines
285 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 show -c "$password"