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.pull/2028/head
parent
f7cba27f10
commit
0286a50fcd
|
|
@ -1,7 +1,7 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# colored ls
|
: "${CLICOLOR:=$(tput colors)}"
|
||||||
export LSCOLORS='Gxfxcxdxdxegedabagacad'
|
export CLICOLOR
|
||||||
|
|
||||||
: "${CUSTOM_THEME_DIR:="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/themes"}"
|
: "${CUSTOM_THEME_DIR:="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/themes"}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ function _bash-it-log-prefix-by-path() {
|
||||||
|
|
||||||
function _has_colors() {
|
function _has_colors() {
|
||||||
# Check that stdout is a terminal, and that it has at least 8 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() {
|
function _bash-it-log-message() {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# shellcheck disable=SC2034 # Expected behavior for themes.
|
# shellcheck disable=SC2034 # Expected behavior for themes.
|
||||||
|
|
||||||
|
# Colors for listing files, using default color scheme.
|
||||||
|
# To customize color scheme by theme, check out https://geoff.greer.fm/lscolors/
|
||||||
|
export CLICOLOR LSCOLORS LS_COLORS
|
||||||
|
|
||||||
CLOCK_CHAR_THEME_PROMPT_PREFIX=''
|
CLOCK_CHAR_THEME_PROMPT_PREFIX=''
|
||||||
CLOCK_CHAR_THEME_PROMPT_SUFFIX=''
|
CLOCK_CHAR_THEME_PROMPT_SUFFIX=''
|
||||||
CLOCK_THEME_PROMPT_PREFIX=''
|
CLOCK_THEME_PROMPT_PREFIX=''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue