lib/appearance: export $CLICOLOR instead of $LSCOLOR
Alsö, since the *value* of `$CLICOLOR` is not used anywhere, overload it to count the number of colors available for use elsewhere.
This commit is contained in:
@@ -45,7 +45,7 @@ function _bash-it-log-prefix-by-path() {
|
||||
|
||||
function _has_colors() {
|
||||
# Check that stdout is a terminal, and that it has at least 8 colors.
|
||||
[[ -t 1 && "${_bash_it_available_colors:=$(tput colors 2> /dev/null)}" -ge 8 ]]
|
||||
[[ -t 1 && "${CLICOLOR:=$(tput colors 2> /dev/null)}" -ge 8 ]]
|
||||
}
|
||||
|
||||
function _bash-it-log-message() {
|
||||
|
||||
Reference in New Issue
Block a user