mirror of
https://github.com/balkian/dotfiles.git
synced 2025-08-23 16:02:19 +00:00
Long time no see
This commit is contained in:
11
bin/passmenu
Executable file
11
bin/passmenu
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
shopt -s nullglob globstar
|
||||
|
||||
password_files=( ~/.password-store/**/*.gpg )
|
||||
password_files=( "${password_files[@]##*/.password-store/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
|
||||
password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
|
||||
|
||||
pass -c "$password"
|
Reference in New Issue
Block a user