From e39e024e741bdfa139a700eccd4e481affdbf4a0 Mon Sep 17 00:00:00 2001
From: Ythildir <pivardjulien@gmail.com>
Date: Sat, 21 Jul 2018 22:52:08 +0200
Subject: Resolve #918 Transparent background

Now function getColorCode consider value 'none' like a good value.
When it's use to set background the segment become transparent
---
 functions/colors.zsh | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'functions')

diff --git a/functions/colors.zsh b/functions/colors.zsh
index e98bfd4f..81e96ae1 100755
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -79,6 +79,10 @@ function getColorCode() {
     else
       echo -n "$1"
     fi
+  # Check if value is none with any case.
+  elif [[ $1 = [nN][oO][nN][eE] ]]
+  then
+    echo -n 'none'
   else
     typeset -A codes
     # https://jonasjacek.github.io/colors/
-- 
cgit v1.2.3