diff --git a/README.md b/README.md index 86f734d..4ffbadd 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ pash * [How do I rename an entry?](#how-do-i-rename-an-entry) * [How can I extend `pash`?](#how-can-i-extend-pash) * [How do I change the clipboard tool?](#how-do-i-change-the-clipboard-tool) + * [How do I change the password generation pattern?](#how-do-i-change-the-password-generation-pattern) * [How can I migrate from `pass` to `pash`?](#how-can-i-migrate-from-pass-to-pash) @@ -62,6 +63,7 @@ OPTIONS Using a key pair: export PASH_KEYID=XXXXXXXX Password length: export PASH_LENGTH=50 +Password pattern: export PASH_PATTERN=_A-Z-a-z-0-9 Store location: export PASH_DIR=~/.local/share/pash Clipboard tool: export PASH_CLIP='xclip -selection clipboard' ``` @@ -155,6 +157,15 @@ Set the environment variable `PASH_CLIP` to a command. export PASH_CLIP='xclip -selection clipboard' ``` +### How do I change the password generation pattern? + +Set the environment variable `PASH_PATTERN` to a valid `tr` string. + +```sh +# Default: '_A-Z-a-z-0-9'. +export PASH_PATTERN=_A-Z-a-z-0-9 +``` + ### How can I migrate from `pass` to `pash`? I cannot guarantee 100% compatibility with the stores from `pass` and other tools, however users have reported that `pash` does in fact work fine with `pass`' store. diff --git a/pash b/pash index ff63ea5..38c935c 100755 --- a/pash +++ b/pash @@ -114,6 +114,7 @@ pash 2.0.1 - simple password manager. Using a key pair: export PASH_KEYID=XXXXXXXX Password length: export PASH_LENGTH=50 +Password pattern: export PASH_PATTERN=_A-Z-a-z-0-9 Store location: export PASH_DIR=~/.local/share/pash Clipboard tool: export PASH_CLIP='xclip -selection clipboard' "