19 lines
361 B
Bash
Executable File
19 lines
361 B
Bash
Executable File
#!/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
|