mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-28 22:40:06 +00:00
disable or substitute "compatible" icons that cannot be displayed by the stock Menlo on macOS
This commit is contained in:
parent
1ec035ead3
commit
91b715f18f
4 changed files with 7 additions and 4 deletions
|
@ -263,7 +263,8 @@ fi
|
||||||
|
|
||||||
# Enable special styling for non-writable directories.
|
# Enable special styling for non-writable directories.
|
||||||
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=true
|
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=true
|
||||||
# Show this icon when the current directory is not writable. Empty for no icon.
|
# Show this icon when the current directory is not writable. POWERLEVEL9K_DIR_SHOW_WRITABLE
|
||||||
|
# above must be set to true for this parameter to have effect.
|
||||||
# typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
# Custom prefix.
|
# Custom prefix.
|
||||||
|
|
|
@ -245,7 +245,7 @@ fi
|
||||||
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=true
|
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=true
|
||||||
# Show this icon when the current directory is not writable. POWERLEVEL9K_DIR_SHOW_WRITABLE
|
# Show this icon when the current directory is not writable. POWERLEVEL9K_DIR_SHOW_WRITABLE
|
||||||
# above must be set to true for this parameter to have effect.
|
# above must be set to true for this parameter to have effect.
|
||||||
# POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
# Custom prefix.
|
# Custom prefix.
|
||||||
# typeset -g POWERLEVEL9K_DIR_PREFIX='%fin '
|
# typeset -g POWERLEVEL9K_DIR_PREFIX='%fin '
|
||||||
|
|
|
@ -432,7 +432,7 @@ function _p9k_init_icons() {
|
||||||
RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' #
|
RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' #
|
||||||
CARRIAGE_RETURN_ICON '\u21B5' # ↵
|
CARRIAGE_RETURN_ICON '\u21B5' # ↵
|
||||||
ROOT_ICON '\u26A1' # ⚡
|
ROOT_ICON '\u26A1' # ⚡
|
||||||
SUDO_ICON '\uE0A2' #
|
SUDO_ICON ''
|
||||||
RUBY_ICON 'Ruby'
|
RUBY_ICON 'Ruby'
|
||||||
AWS_ICON 'AWS'
|
AWS_ICON 'AWS'
|
||||||
AWS_EB_ICON '\U1F331' # 🌱
|
AWS_EB_ICON '\U1F331' # 🌱
|
||||||
|
|
|
@ -1217,8 +1217,10 @@ function generate_config() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $POWERLEVEL9K_MODE == compatible ]]; then
|
if [[ $POWERLEVEL9K_MODE == compatible ]]; then
|
||||||
# Many fonts don't have the gear icon.
|
# Many fonts don't have the gear or the lock icon.
|
||||||
sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'⇶'"
|
sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'⇶'"
|
||||||
|
uncomment 'typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION'
|
||||||
|
sub DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION "'∅'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then
|
if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue