bin/pashmenu
#!/bin/sh -e
#
# posix i think
cd "$PASH_DIR"
# strip .gpg extension & preserve newlines; cut things; sort
passwords=$(find . -type f -name "*.gpg" -exec sh -c 'printf "${0%.gpg}\n"' {} \; | cut -d '/' -f 2- | sort)
password=$(printf '%s' "$passwords" | dmenu)
[ -n "$password" ] || exit
pash copy "$password"