Update 2023-04-26 15:39 OpenBSD/amd64-dalek
This commit is contained in:
parent
df6a8787dd
commit
00e05613d2
@ -7,7 +7,9 @@ prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
||||||
unset password_files;
|
unset password_files
|
||||||
|
unset PASS
|
||||||
|
unset FOLDER
|
||||||
|
|
||||||
|
|
||||||
password_files=( "$prefix"/**/*.gpg )
|
password_files=( "$prefix"/**/*.gpg )
|
||||||
@ -19,6 +21,8 @@ do
|
|||||||
|
|
||||||
EXTRA="-q ${password#*/}"
|
EXTRA="-q ${password#*/}"
|
||||||
|
|
||||||
|
echo "$password" | fgrep -q '/' && FOLDER="${password%/*}/"
|
||||||
|
|
||||||
echo "---------"
|
echo "---------"
|
||||||
echo "Selected: $password"
|
echo "Selected: $password"
|
||||||
PASS="$(pass "$password")"
|
PASS="$(pass "$password")"
|
||||||
@ -32,7 +36,7 @@ do
|
|||||||
|
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
[eE]) echo "Editing $password."; pass edit "$password"; ;;
|
[eE]) echo "Editing $password."; pass edit "$password"; ;;
|
||||||
[rR]) echo -n "Rename to: "; read; [ ! -z "$REPLY" ] && pass mv "$password" "$REPLY"; ;;
|
[rR]) echo -n "Rename to: "; read -i "$FOLDER" -e REPLY; [ ! -z "$REPLY" ] && pass mv "$password" "$REPLY"; ;;
|
||||||
[nN]) pass generate -i "$password" 22; ;;
|
[nN]) pass generate -i "$password" 22; ;;
|
||||||
[dD]) pass rm "$password"; unset EXTRA; ;;
|
[dD]) pass rm "$password"; unset EXTRA; ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user