diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-07-08 09:55:46 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-07-08 09:55:46 -0700 |
| commit | 8e8e5241e96dc1bec3d897f514b77553da033529 (patch) | |
| tree | 6b56582a41601296b6ec703e89ab430d8a1d7a5c /scripts/misc/pass-menu.sh | |
| parent | a8cdd563ebbe1f68f3aa36da05d734d4164e1430 (diff) | |
password dmenu script
Diffstat (limited to 'scripts/misc/pass-menu.sh')
| -rwxr-xr-x | scripts/misc/pass-menu.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/misc/pass-menu.sh b/scripts/misc/pass-menu.sh new file mode 100755 index 0000000..ca716d9 --- /dev/null +++ b/scripts/misc/pass-menu.sh @@ -0,0 +1,6 @@ +#!/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" |
