zsh: feat: Customise p10k colour scheme

This commit is contained in:
PorridgePi
2021-11-20 21:46:43 +08:00
parent b599f1bebf
commit 99f696c1be

View File

@@ -208,19 +208,19 @@
# Current directory background color. # Current directory background color.
typeset -g POWERLEVEL9K_DIR_BACKGROUND=4 typeset -g POWERLEVEL9K_DIR_BACKGROUND=4
# Default current directory foreground color. # Default current directory foreground color.
typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_DIR_FOREGROUND=241
# If directory is too long, shorten some of its segments to the shortest possible unique # 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. # prefix. The shortened directory can be tab-completed to the original.
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
# 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=250 typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=245
# 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=255 typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=240
# Display anchor directory segments in bold. # Display anchor directory segments in bold.
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=false
# Don't shorten directories that contain any of these files. They are anchors. # Don't shorten directories that contain any of these files. They are anchors.
local anchor_files=( local anchor_files=(
.bzr .bzr