mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 17:10:07 +00:00
change os_icon style
This commit is contained in:
parent
24a5261a39
commit
93230ae6ec
3 changed files with 15 additions and 9 deletions
|
@ -173,10 +173,10 @@ fi
|
||||||
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
||||||
|
|
||||||
#################################[ os_icon: os identifier ]##################################
|
#################################[ os_icon: os identifier ]##################################
|
||||||
# Foreground color.
|
# OS identifier color.
|
||||||
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=209
|
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255
|
||||||
# Display this icon instead of the default.
|
# Make the icon bold.
|
||||||
# typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐'
|
typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='%B${P9K_CONTENT}'
|
||||||
|
|
||||||
################################[ prompt_char: prompt symbol ]################################
|
################################[ prompt_char: prompt symbol ]################################
|
||||||
# Transparent background.
|
# Transparent background.
|
||||||
|
|
|
@ -163,9 +163,9 @@ fi
|
||||||
|
|
||||||
#################################[ os_icon: os identifier ]##################################
|
#################################[ os_icon: os identifier ]##################################
|
||||||
# OS identifier color.
|
# OS identifier color.
|
||||||
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=209
|
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=
|
||||||
# Display this icon instead of the default.
|
# Make the icon bold.
|
||||||
# typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐'
|
typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='%B${P9K_CONTENT}'
|
||||||
|
|
||||||
################################[ prompt_char: prompt symbol ]################################
|
################################[ prompt_char: prompt symbol ]################################
|
||||||
# Green prompt symbol if the last command succeeded.
|
# Green prompt symbol if the last command succeeded.
|
||||||
|
|
|
@ -51,7 +51,7 @@ typeset -r vertical_bar='|'
|
||||||
typeset -r slanted_bar='\uE0BD'
|
typeset -r slanted_bar='\uE0BD'
|
||||||
|
|
||||||
typeset -ra lean_left=(
|
typeset -ra lean_left=(
|
||||||
'' '${extra_icons[1]:+%209F$extra_icons[1] }%31F$extra_icons[2]%B%39F~%b%31F/%B%39Fpowerlevel10k%b%f $prefixes[1]%76F$extra_icons[3]master ⇡2%f '
|
'' '${extra_icons[1]:+$extra_icons[1] }%31F$extra_icons[2]%B%39F~%b%31F/%B%39Fpowerlevel10k%b%f $prefixes[1]%76F$extra_icons[3]master ⇡2%f '
|
||||||
'' '%76F❯%f █'
|
'' '%76F❯%f █'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ typeset -ra lean_right=(
|
||||||
)
|
)
|
||||||
|
|
||||||
typeset -ra classic_left=(
|
typeset -ra classic_left=(
|
||||||
'%$frame_color[$color]F╭─' '%F{$bg_color[$color]}$left_tail%K{$bg_color[$color]} ${extra_icons[1]:+%209F$extra_icons[1] %$sep_color[$color]F$left_subsep%f }%31F$extra_icons[2]%B%39F~%b%K{$bg_color[$color]}%31F/%B%39Fpowerlevel10k%b%K{$bg_color[$color]} %$sep_color[$color]F$left_subsep%f %$prefix_color[$color]F$prefixes[1]%76F$extra_icons[3]master ⇡2 %k%$bg_color[$color]F$left_head%f'
|
'%$frame_color[$color]F╭─' '%F{$bg_color[$color]}$left_tail%K{$bg_color[$color]} ${extra_icons[1]:+$extra_icons[1]%K{$bg_color[$color]\} %$sep_color[$color]F$left_subsep%f }%31F$extra_icons[2]%B%39F~%b%K{$bg_color[$color]}%31F/%B%39Fpowerlevel10k%b%K{$bg_color[$color]} %$sep_color[$color]F$left_subsep%f %$prefix_color[$color]F$prefixes[1]%76F$extra_icons[3]master ⇡2 %k%$bg_color[$color]F$left_head%f'
|
||||||
'%$frame_color[$color]F╰─' '%f █'
|
'%$frame_color[$color]F╰─' '%f █'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -418,6 +418,12 @@ function ask_extra_icons() {
|
||||||
vcs_icon=${vcs_icon// }
|
vcs_icon=${vcs_icon// }
|
||||||
branch_icon=${branch_icon// }
|
branch_icon=${branch_icon// }
|
||||||
fi
|
fi
|
||||||
|
if [[ $style == classic ]]; then
|
||||||
|
os_icon="%255F$os_icon%f"
|
||||||
|
else
|
||||||
|
os_icon="%f$os_icon"
|
||||||
|
fi
|
||||||
|
os_icon="%B$os_icon%b"
|
||||||
local many=("$os_icon" "$dir_icon " "$vcs_icon $branch_icon ")
|
local many=("$os_icon" "$dir_icon " "$vcs_icon $branch_icon ")
|
||||||
while true; do
|
while true; do
|
||||||
clear
|
clear
|
||||||
|
|
Loading…
Reference in a new issue