From f16b29502c9d5d14c9af4d78388f924d59440ab3 Mon Sep 17 00:00:00 2001 From: romkatv Date: Sat, 20 Jul 2019 17:35:30 +0200 Subject: [PATCH] add os_icon --- config/p10k-lean.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 32e5fc76..e7653c89 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -28,6 +28,7 @@ fi # The list of segments shown on the left. Fill it with the most important segments. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( # =========================[ Line #1 ]========================= + # os_icon # os identifier dir # current directory vcs # git status # =========================[ Line #2 ]========================= @@ -107,7 +108,7 @@ fi # Nerd Fonts | nerdfont-complete # # Tip: Don't use default icons and forget about font configuration headaches. - typeset -g POWERLEVEL9K_MODE=powerline + typeset -g POWERLEVEL9K_MODE=nerdfont-complete # Add an empty line before each prompt. If you set it to false, you might want to # set POWERLEVEL9K_SHOW_RULER to true below. @@ -119,6 +120,11 @@ fi typeset -g POWERLEVEL9K_RULER_CHAR='─' typeset -g POWERLEVEL9K_RULER_FOREGROUND=237 + # OS identifier color. + typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=212 + # Want to display a different icon? Uncomment the next line and set the desired value. + # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION=$'\uFB8A' + # 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.