From c85d1769ef0748bcd38982e058f8f5a252719019 Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 29 Jul 2019 10:51:08 +0200 Subject: [PATCH] add prompt_char --- config/p10k-classic.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index e7490063..91cfa6a0 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -35,6 +35,7 @@ fi vcs # git status # =========================[ Line #2 ]========================= newline + # prompt_char # prompt symbol ) # The list of segments shown on the right. Fill it with less important segments. @@ -176,6 +177,24 @@ fi # Display this icon instead of the default. # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' + ################################[ prompt_char: prompt symbol ]################################ + # Transparent background. + typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND= + # Green prompt symbol if the last command succeeded. + typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=76 + # Red prompt symbol if the last command failed. + typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=196 + # Default prompt symbol. + typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' + # Prompt symbol in command vi mode. + typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮' + # Prompt symbol in visual vi mode. + typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='Ⅴ' + # No line terminator if prompt_char is the last segment. + typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='' + # No surrounding whitespace. + typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE= + ##################################[ dir: current directory ]################################## # Default current directory color. typeset -g POWERLEVEL9K_DIR_FOREGROUND=31