aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-09-16 01:46:46 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-09-16 01:46:46 +0300
commit689b6d8f8cb0a527eb826c1e5fa99d1119776b02 (patch)
tree0e3250260708d709de86d137d2cfee5d435ae2d9
parent2384b6aabacdebbb24dd632d5759fe250aa1e722 (diff)
Shellcheck.net: Quote variables.
-rw-r--r--powerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 6be7874a..ea2e2ca5 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -381,7 +381,7 @@ left_prompt_segment() {
if [[ $CURRENT_BG != 'NONE' ]] && [[ "$2" != "$CURRENT_BG" ]]; then
# Middle segment
echo -n "%{$bg%F{$CURRENT_BG}%}$(print_icon 'LEFT_SEGMENT_SEPARATOR')%{$fg%} "
- elif [[ "$CURRENT_BG" == $2 ]]; then
+ elif [[ "$CURRENT_BG" == "$2" ]]; then
# Middle segment with same color as previous segment
# We take the current foreground color as color for our
# subsegment (or the default color). This should have
@@ -433,7 +433,7 @@ right_prompt_segment() {
[[ -n $2 ]] && bg="%K{$2}" || bg="%k"
[[ -n $3 ]] && fg="%F{$3}" || fg="%f"
- if [[ "$CURRENT_RIGHT_BG" == $2 ]]; then
+ if [[ "$CURRENT_RIGHT_BG" == "$2" ]]; then
# Middle segment with same color as previous segment
# We take the current foreground color as color for our
# subsegment (or the default color). This should have