Update 2023-02-22 08:31 OpenBSD/amd64
This commit is contained in:
18
.bin/passmenu-edit
Executable file
18
.bin/passmenu-edit
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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}" )
|
||||
|
||||
|
||||
while true
|
||||
do
|
||||
password=$(printf '%s\n' "${password_files[@]}" | fzf)
|
||||
|
||||
[[ -n $password ]] || exit
|
||||
pass edit "$password"
|
||||
done
|
||||
Reference in New Issue
Block a user