mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
simplify configs
- use POWERLEVEL9K_ICON_PADDING instead of POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION to customize padding after icons - remove reliance on UTF-8 locale when the config is being sourced
This commit is contained in:
parent
0d662be14c
commit
e4e165f6d7
8 changed files with 41 additions and 238 deletions
|
|
@ -1776,13 +1776,8 @@ function generate_config() {
|
|||
else
|
||||
sub MODE $POWERLEVEL9K_MODE
|
||||
|
||||
if (( cap_narrow_icons )); then
|
||||
sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'"
|
||||
if [[ $style == lean_8colors ]]; then
|
||||
sub OS_ICON_CONTENT_EXPANSION "'\${P9K_CONTENT// }'"
|
||||
else
|
||||
sub OS_ICON_CONTENT_EXPANSION "'%B\${P9K_CONTENT// }'"
|
||||
fi
|
||||
if (( ! cap_narrow_icons )); then
|
||||
sub ICON_PADDING moderate
|
||||
fi
|
||||
|
||||
if [[ $POWERLEVEL9K_MODE == compatible ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue