[download]

local/bin/pass-menu

   1 #!/bin/bash
   2 
   3 cd ${PASSWORD_STORE_DIR:-~/.password-store} || exit
   4 
   5 find * -type f | sed 's/\.gpg//' | menu -i pass | while read i; do
   6     pass $i |
   7     awk -F : '{ print NR ". " (NR == 1 ? "password" : $1) }' |
   8     menu -i pass -p $i | cut -d . -f 1 | xargs -rI % pass -c% $i
   9 done