biviosoftware / home-env

MIT License
2 stars 2 forks source link

Fix #83 CLICOLOR must not be set #85

Closed robnagler closed 11 months ago

robnagler commented 11 months ago

https://github.com/freebsd/freebsd-src/commit/a408dc201879e70e6508f4269e031616739fc5a0#diff-81a320df1a15a18d4f40d9a7730c120b1c69d1d87636b0b013c894ea1c90a8afR273

robnagler commented 11 months ago

Undid #84, because the code in ls.c for freebsd is written incorrectly, but that's how it is. If CLICOLOR is in the environment, it's "true", even if it is an empty string or 0.

cmake and other programs use CLICOLOR=0 to mean "false", and otherwise, it's "true" (even if unset). Linux does not observe CLICOLOR so probably could add a check for Darwin. Too complicated.