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 9b993d93545a5866901e5f2c26d2bcadf52de5f7
parent 045657dea883b4e54084307176a35923c8d4dc30
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Thu,  4 Dec 2025 19:48:34 +0000

Colored output by default when not redirected
Diffstat:
Msrc/run.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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_FORCE-}" ]; then +if [ -z "${NO_COLOR-}" ] && { [ -t 1 ] || [ -n "${CLICOLOR_FORCE-}" ]; }; then BOLD_TEXT="$(printf '\033[1m')" NORMAL_TEXT="$(printf '\033[0m')" RED_TEXT="$(printf '\033[31m')"