make pass dmenu_pass less hardcoded + provide an alternative for gvim in the form of terminal+vim
This commit is contained in:
parent
cf2627c699
commit
13a6a20970
2 changed files with 12 additions and 1 deletions
|
@ -9,11 +9,12 @@ if [[ $1 == "--type" ]]; then
|
|||
fi
|
||||
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
name=${TITLE-pass}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
|
||||
password=$(printf '%s\n' "${password_files[@]}" | dmenu -p pass "$@")
|
||||
password=$(printf '%s\n' "${password_files[@]}" | dmenu -p ${name} "$@")
|
||||
|
||||
[[ -n $password ]] || exit
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue