From 8870c0e7e7b3647cc6b32635e1a42d975a8c9370 Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 30 Mar 2024 20:44:41 +0100 Subject: [PATCH] home-profile: zsh style changes --- extraFiles/config/zsh/p10kcfg/fullcolor.zsh | 23 ++++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/extraFiles/config/zsh/p10kcfg/fullcolor.zsh b/extraFiles/config/zsh/p10kcfg/fullcolor.zsh index f3f9ad6..661748a 100644 --- a/extraFiles/config/zsh/p10kcfg/fullcolor.zsh +++ b/extraFiles/config/zsh/p10kcfg/fullcolor.zsh @@ -99,6 +99,7 @@ timewarrior # timewarrior tracking status (https://timewarrior.net/) taskwarrior # taskwarrior task count (https://taskwarrior.org/) # cpu_arch # CPU architecture + private time # current time # ip # ip address and bandwidth usage for a specified network interface # public_ip # public IP address @@ -178,8 +179,8 @@ #################################[ os_icon: os identifier ]################################## # OS identifier color. - typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232 - typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7 + typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=11 + typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=54 # Custom icon. # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' @@ -208,19 +209,19 @@ ##################################[ dir: current directory ]################################## # Current directory background color. - typeset -g POWERLEVEL9K_DIR_BACKGROUND=4 + typeset -g POWERLEVEL9K_DIR_BACKGROUND=11 # Default current directory foreground color. - typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 + typeset -g POWERLEVEL9K_DIR_FOREGROUND=54 # 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=250 + typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=54 # Color of the anchor directory segments. Anchor segments are never shortened. The first # segment is always an anchor. - typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255 + typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=54 # 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. @@ -348,7 +349,7 @@ #####################################[ vcs: git status ]###################################### # Version control background colors. typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2 - typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3 + typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=50 typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2 typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=3 typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=8 @@ -1672,7 +1673,7 @@ # Custom icon. # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' # Custom prefix. - typeset -g POWERLEVEL9K_TIME_PREFIX='at ' + typeset -g POWERLEVEL9K_TIME_PREFIX='' # Example of a user-defined prompt segment. Function prompt_example will be called on every # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or @@ -1680,8 +1681,10 @@ # greeting the user. # # Type `p10k help segment` for documentation and a more sophisticated example. - function prompt_example() { - p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n' + function prompt_private() { + if [ $__MATERUS_HM_ZSH_PRIVATE = "1" ]; then + p10k segment -b 54 -f 11 -i '󰗹' -t 'PRIVATE' + fi } # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job