From 0302e68913458a2d961b2dcdd0dfc670f308fe29 Mon Sep 17 00:00:00 2001 From: romkatv Date: Fri, 11 Oct 2019 19:00:47 +0200 Subject: [PATCH] change dir foreground from black to white in rainbow style; looks a bit less ugly --- config/p10k-rainbow.zsh | 12 ++++++------ internal/wizard.zsh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index 35c7e91d..49f6ffba 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -218,17 +218,17 @@ # Current directory background color. # typeset -g POWERLEVEL9K_DIR_BACKGROUND=4 # Default current directory foreground color. - typeset -g POWERLEVEL9K_DIR_FOREGROUND=0 + typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 # If directory is too long, shorten some of its segments to the shortest possible unique # prefix. The shortened directory can be tab-completed to the original. typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique # Replace removed segment suffixes with this symbol. typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= # Color of the shortened directory segments. - typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=8 + typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250 # Color of the anchor directory segments. Anchor segments are never shortened. The first # segment is always an anchor. - typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=0 + typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255 # Display anchor directory segments in bold. typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true # Don't shorten directories that contain any of these files. They are anchors. @@ -309,9 +309,9 @@ # to have its own color. # # typeset -g POWERLEVEL9K_DIR_WORK_BACKGROUND=4 - # typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=0 - # typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=8 - # typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=0 + # typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=254 + # typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=250 + # typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=255 # # typeset -g POWERLEVEL9K_DIR_CLASSES=() diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 03fb9473..9ea8abcf 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -91,7 +91,7 @@ typeset -ra pure_right=( ) typeset -ra rainbow_left=( - '%$frame_color[$color]F╭─' '%F{${${extra_icons[1]:+0}:-4}}$left_tail${extra_icons[1]:+%K{0\} $extra_icons[1] %K{4\}%0F$left_sep}%K{4}%0F $extra_icons[2]%B~%b%K{4}%0F/%Bsrc%b%K{4} %K{2}%4F$left_sep %0F$prefixes[1]$extra_icons[3]master %k%2F$left_head%f' + '%$frame_color[$color]F╭─' '%F{${${extra_icons[1]:+0}:-4}}$left_tail${extra_icons[1]:+%K{0\} $extra_icons[1] %K{4\}%0F$left_sep}%K{4}%254F $extra_icons[2]%B%255F~%b%K{4}%254F/%B%255Fsrc%b%K{4} %K{2}%4F$left_sep %0F$prefixes[1]$extra_icons[3]master %k%2F$left_head%f' '%$frame_color[$color]F╰─' '%f █' )