1a6f15fa79358905130198d035d88c9784125c61
3 shopt -s nullglob globstar
6 if [[ $1 == "--type" ]]; then
9 elif [[ $1 == "--tmux" ]]; then
14 prefix
=${PASSWORD_STORE_DIR-~/.password-store}
15 password_files
=( "$prefix"/**/*.gpg
)
16 password_files
=( "${password_files[@]#"$prefix"/}" )
17 password_files
=( "${password_files[@]%.gpg}" )
19 password
=$
(printf '%s\n' "${password_files[@]}" | dmenu
"$@")
21 [[ -n $password ]] ||
exit
23 if [[ $typeit -eq 0 ]]; then
24 pass show
-c "$password" 2>/dev
/null
25 elif [[ $typeit -eq 1 ]]; then
26 pass show
"$password" |
{ IFS
= read -r pass
; printf %s
"$pass"; } |
27 xdotool
type --clearmodifiers --file -
29 tmux set-buffer
"$(pass show "$password")"