summaryrefslogtreecommitdiff
path: root/bin/id
diff options
context:
space:
mode:
Diffstat (limited to 'bin/id')
-rwxr-xr-xbin/id5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/id b/bin/id
new file mode 100755
index 0000000..3be501a
--- /dev/null
+++ b/bin/id
@@ -0,0 +1,5 @@
+#! /bin/bash
+PWD_DIR="$HOME/dotfiles/.passwords"
+PASSWORDS=$(locate "$PWD_DIR/**/*.gpg")
+TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:")
+basename $TARGET .gpg | xclip -i