small pixel drawing of a pufferfish pa

improve wordings (#33)

arĉi arcxi@dismail.de
Sun, 23 Jun 2024 04:01:46 +0200
commit

c89fbea3b9b54c24a696efed74779d6bcdcd6b72

parent

52d6b821b727ab60a3a6c239ff6f644ac6ac2e62

2 files changed, 12 insertions(+), 12 deletions(-)

jump to
M READMEREADME

@@ -20,7 +20,7 @@

usage pa - a simple password manager based on age + a simple password manager commands: [a]dd [name] - Add a password entry.

@@ -31,7 +31,7 @@ [s]how [name] - Show password for an entry.

env vars: Password length: export PA_LENGTH=50 - Password pattern: export PA_PATTERN=_A-Z-a-z-0-9 + Password pattern: export PA_PATTERN=A-Za-z0-9-_ Password dir: export PA_DIR=~/.local/share/pa/passwords Disable tracking: export PA_NOGIT=

@@ -51,7 +51,7 @@ $ pa edit test

<opens $EDITOR or vi> $ pa del test - Delete pass file 'test'? [y/N]: y + Delete password 'test'? [y/N]: y faq
M papa

@@ -1,30 +1,30 @@

#!/bin/sh # -# pa - a simple password manager based on age +# pa - a simple password manager pw_add() { name=$1 if yn "Generate a password?"; then - pass=$(rand_chars "${PA_LENGTH:-50}" "${PA_PATTERN:-_A-Z-a-z-0-9}") + pass=$(rand_chars "${PA_LENGTH:-50}" "${PA_PATTERN:-A-Za-z0-9-_}") [ "$pass" ] || die "Couldn't generate a password" else # 'sread()' is a simple wrapper function around 'read' # to prevent user input from being printed to the terminal. - sread pass "Enter password" + sread pass "Enter a password" [ "$pass" ] || die "Password can't be empty" - sread pass2 "Enter password (again)" + sread pass2 "Enter a password (again)" # Disable this check as we dynamically populate the two # passwords using the 'sread()' function. # shellcheck disable=2154 [ "$pass" = "$pass2" ] || - die "Passwords do not match" + die "Passwords don't match" fi mkdir -p "$(dirname "./$name")" ||

@@ -70,7 +70,7 @@ tmpfile="$editdir/$name.age"

# Handle nested items (/foo/bar.age) mkdir -p "$(dirname "$tmpfile")" || - die "Couldn't create shared memory dir" + die "Couldn't create a shared memory dir" trap 'rm -rf "$editdir"' EXIT

@@ -86,7 +86,7 @@ git_add_and_commit "./$name.age" "edit '$name'"

} pw_del() { - yn "Delete pass file '$1'?" && { + yn "Delete password '$1'?" && { rm -f "./$1.age" # Remove empty parent directories of a password

@@ -185,7 +185,7 @@

usage() { printf %s "\ pa - a simple password manager based on age + a simple password manager commands: [a]dd [name] - Add a password entry.

@@ -196,7 +196,7 @@ [s]how [name] - Show password for an entry.

env vars: Password length: export PA_LENGTH=50 - Password pattern: export PA_PATTERN=_A-Z-a-z-0-9 + Password pattern: export PA_PATTERN=A-Za-z0-9-_ Password dir: export PA_DIR=~/.local/share/pa/passwords Disable tracking: export PA_NOGIT= "