summaryrefslogtreecommitdiff
path: root/bin/id
blob: d42bb39aef721c5cf8881acd12013431a2ea633a (plain)
1
2
3
4
5
#! /bin/bash
PWD_DIR="$HOME/.password-store"
PASSWORDS=$(locate "${PWD_DIR}/**/*.gpg")
TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:")
basename $TARGET .gpg | xclip -i