mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-25 15:32:18 +00:00
add os_icon
This commit is contained in:
parent
34d02736ce
commit
f16b29502c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user