summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmpass
blob: 9d796604fd86df26c7ad60b45f4474d3325b56af (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
store="$HOME/.password-store"
lscmd="ls --group-directories-first"
dmenucmd="dmenu -l 4 -g 2"
while [ -d "${store}/${file}" ]
do
	choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $dmenucmd)"
	[ "$choice" ] || break
	file="${file}/${choice}"
done
pass show -c "${file}"