summaryrefslogtreecommitdiff
path: root/functions/colors.zsh
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-08-07 22:35:29 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-08-07 22:35:29 +0300
commiteadbd09368f011d29893ea05c3bec7a1d2fbfebc (patch)
treebb100d46d3d2b6c1ae32403122cc23e2db53d3a5 /functions/colors.zsh
parent9cf76f99a548a9c51c2a9cc65ecadfd5353afa23 (diff)
Write comparisons with double equals
Diffstat (limited to 'functions/colors.zsh')
-rwxr-xr-xfunctions/colors.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh
index 41223dd2..1788bbfc 100755
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -36,7 +36,7 @@ function getColor() {
local default="$'\033'\[49m"
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html
local quoted=$(printf "%q" $(print -P "$named"))
- if [[ $quoted = "$'\033'\[49m" && $1 != "black" ]]; then
+ if [[ $quoted == "$'\033'\[49m" && $1 != "black" ]]; then
# color not found, so try to get the code
1=$(getColorCode $1)
fi