#!/bin/sh root=${PASSWORD_STORE_DIR:-~/.password-store} selection=$(sh -c "find $root -name '*.gpg' -print | sed -e \"s#$root/\?##\" -e \"s#.gpg##\" | dmenu -i") pass show -c "$selection"