diff options
Diffstat (limited to 'bin/guiscripts/dmpass')
-rwxr-xr-x | bin/guiscripts/dmpass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/guiscripts/dmpass b/bin/guiscripts/dmpass new file mode 100755 index 0000000..9d79660 --- /dev/null +++ b/bin/guiscripts/dmpass @@ -0,0 +1,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}" |