From e6e0283c20b36326d0cb5a01ae3ef5aa46dba988 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 13 Oct 2021 21:22:56 -0700 Subject: [PATCH] don't return nonzero in `morecolors` --- sh/morecolors | 1 + 1 file changed, 1 insertion(+) diff --git a/sh/morecolors b/sh/morecolors index cdd08bd..1edc85c 100755 --- a/sh/morecolors +++ b/sh/morecolors @@ -13,6 +13,7 @@ morecolors() { ### @- print all 256 colors that are available on most terminals. [ "$(( i+1 <= 16 ? (i+1) % 8 : ( (i+1)-16) % 6 ))" = 0 ] && printf '\e[0m\n' [ "$(( i+1 <= 16 ? (i+1) % 16 : ( (i+1)-16) % 36 ))" = 0 ] && printf '\e[0m\n' done + return 0 } [ -n "${preload+-}" ] || morecolors "$@"