aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorJustus Flerlage <justusflerlage@juteel.com>2017-11-25 03:43:30 +0300
committerJustus Flerlage <justusflerlage@juteel.com>2018-01-07 23:34:46 +0300
commit4db2eb0e1607e6b4d8097a5feb178f25357cb1c9 (patch)
tree1cc11560eb41eb44041306de8094b2cf65ef240f /functions
parentfabc473381e8390c9b968ea050231f404dbfab84 (diff)
Added flag for checking the term colors
Diffstat (limited to 'functions')
-rw-r--r--functions/colors.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh
index 253de7cb..8029c727 100644
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -7,6 +7,10 @@
################################################################
function termColors() {
+ if [[ $POWERLEVEL9K_CHECK_TERM_COLORS == false ]]; then
+ return
+ fi
+
local term_colors
if which tput &>/dev/null; then