choice="$(find "$HOME/.password-store" -type f | \ grep -Ev '(.git|.gpg-id)' | \ sed -e "s|$HOME/.password-store/||" -e 's/\.gpg$//' | \ remembering -p password-store \ -c 'dmenu -l 20 -i')" if [ -n "$choice" ]; then pass show "$choice" -c fi