1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 01:53:22 -07:00

don't return nonzero in morecolors

This commit is contained in:
Connor Olding 2021-10-13 21:22:56 -07:00
parent 590b5618b2
commit e6e0283c20

View File

@ -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 "$@"