1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

Added flag for checking the term colors

This commit is contained in:
Justus Flerlage 2017-11-25 01:43:30 +01:00
parent fabc473381
commit 4db2eb0e16
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,10 @@
################################################################ ################################################################
function termColors() { function termColors() {
if [[ $POWERLEVEL9K_CHECK_TERM_COLORS == false ]]; then
return
fi
local term_colors local term_colors
if which tput &>/dev/null; then if which tput &>/dev/null; then

View File

@ -1563,6 +1563,7 @@ NEWLINE='
[[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT" [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
} }
set_default POWERLEVEL9K_CHECK_TERM_COLORS true
prompt_powerlevel9k_setup() { prompt_powerlevel9k_setup() {
# The value below was set to better support 32-bit CPUs. # The value below was set to better support 32-bit CPUs.
# It's the maximum _signed_ integer value on 32-bit CPUs. # It's the maximum _signed_ integer value on 32-bit CPUs.