add alt color

This commit is contained in:
JOLIMAITRE Matthieu 2024-06-18 04:37:49 +02:00
parent 61c5f090f9
commit 181f79f589
2 changed files with 4 additions and 2 deletions

View file

@ -13,4 +13,6 @@ function random_from {
# generated variables # generated variables
export MACHINE_COLOR=$(random_from 1 2 3 4 5 6 9 10 11 12 13 14) mb_colors=$(random_from 1:9 2:10 3:11 4:12 5:13 6:14 9:1 10:2 11:3 12:4 13:5 14:6)
export MACHINE_COLOR=$(echo $mb_colors | cut -d ':' -f 1)
export MACHINE_COLOR_ALT=$(echo $mb_colors | cut -d ':' -f 2)

View file

@ -216,7 +216,7 @@
# Replace removed segment suffixes with this symbol. # Replace removed segment suffixes with this symbol.
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
# Color of the shortened directory segments. # Color of the shortened directory segments.
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=103 typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=$MACHINE_COLOR_ALT
# Color of the anchor directory segments. Anchor segments are never shortened. The first # Color of the anchor directory segments. Anchor segments are never shortened. The first
# segment is always an anchor. # segment is always an anchor.
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=011 typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=011