Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
11
.bin/OLD/passmenu
Executable file
11
.bin/OLD/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