pashage

Yet Another Opinionated Re-engineering of the Unix Password Store
git clone https://git.instinctive.eu/pashage.git
Log | Files | Refs | README | LICENSE

commit 045657dea883b4e54084307176a35923c8d4dc30
parent b13bf08f00eb231123c4a909eeb502ed48755e3f
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Wed,  3 Dec 2025 20:12:36 +0000

CLICOLOR_FORCE rather than CLICOLOR
Diffstat:
MREADME.md | 16++++++++--------
Mpashage.1 | 2+-
Msrc/run.sh | 2+-
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -308,8 +308,8 @@ Flags: rather than a tree Environment: -- `CLICOLOR`: when set to a non-empty value, and `NO_COLOR` is unset or empty, - use ANSI escape sequences to color the output +- `CLICOLOR_FORCE`: when set to a non-empty value, and `NO_COLOR` is unset + or empty, use ANSI escape sequences to color the output - `LC_CTYPE`: when it contains `UTF`, the tree is displayed using Unicode graphic characters instead of ASCII - `NO_COLOR`: when set to a non-empty value, no ANSI escape sequence is output @@ -349,8 +349,8 @@ Flags: storing it into the database Environment: -- `CLICOLOR`: when set to a non-empty value, and `NO_COLOR` is unset or empty, - use ANSI escape sequences to color the output +- `CLICOLOR_FORCE`: when set to a non-empty value, and `NO_COLOR` is unset + or empty, use ANSI escape sequences to color the output - `NO_COLOR`: when set to a non-empty value, no ANSI escape sequence is output - `PASHAGE_AGE`: external command to use instead of `age` - `PASHAGE_DIR`: database directory to use instead of `~/.passage/store` @@ -425,8 +425,8 @@ filter them through `grep(1)` using the given options, and outputs all the matching lines and the corresponding secret. Environment: -- `CLICOLOR`: when set to a non-empty value, and `NO_COLOR` is unset or empty, - use ANSI escape sequences to color the output +- `CLICOLOR_FORCE`: when set to a non-empty value, and `NO_COLOR` is unset + or empty, use ANSI escape sequences to color the output - `NO_COLOR`: when set to a non-empty value, no ANSI escape sequence is output - `PASHAGE_AGE`: external command to use instead of `age` - `PASHAGE_DIR`: database directory to use instead of `~/.passage/store` @@ -547,8 +547,8 @@ Flags: - `-r` or `--raw`: display the results as a raw list of secrets Environment: -- `CLICOLOR`: when set to a non-empty value, and `NO_COLOR` is unset or empty, - use ANSI escape sequences to color the output +- `CLICOLOR_FORCE`: when set to a non-empty value, and `NO_COLOR` is unset + or empty, use ANSI escape sequences to color the output - `LC_CTYPE`: when it contains `UTF`, the tree is displayed using Unicode graphic characters instead of ASCII - `NO_COLOR`: when set to a non-empty value, no ANSI escape sequence is output diff --git a/pashage.1 b/pashage.1 @@ -357,7 +357,7 @@ The following environment variables affect the execution of .\" The largest symbol is actually PASSWORD_STORE_CHARACTER_SET_NO_SYMBOLS .\" but that compresses the second columns way too much. .Bl -tag -width XXXXXXXX -.It Ev CLICOLOR +.It Ev CLICOLOR_FORCE when set to a non-empty value, and .Ev NO_COLOR is unset or empty, use ANSI escape sequences to color the output diff --git a/src/run.sh b/src/run.sh @@ -60,7 +60,7 @@ RED_TEXT="" BLUE_TEXT="" UNDERLINE_TEXT="" NO_UNDERLINE_TEXT="" -if [ -z "${NO_COLOR-}" ] && [ -n "${CLICOLOR-}" ]; then +if [ -z "${NO_COLOR-}" ] && [ -n "${CLICOLOR_FORCE-}" ]; then BOLD_TEXT="$(printf '\033[1m')" NORMAL_TEXT="$(printf '\033[0m')" RED_TEXT="$(printf '\033[31m')"