mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-17 21:30:07 +00:00
Shellcheck.net: Quote variables.
This commit is contained in:
parent
2384b6aaba
commit
689b6d8f8c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue