Update 2023-02-22 08:31 OpenBSD/amd64
This commit is contained in:
11
.bin/passmenu
Executable file
11
.bin/passmenu
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
shopt -s nullglob globstar
|
||||
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
password=$(printf '%s\n' "${password_files[@]}" | fzf)
|
||||
|
||||
[[ -n $password ]] || exit
|
||||
pass "$password"
|
||||
Reference in New Issue
Block a user