summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-07 10:28:45 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-07 10:28:45 +0300
commit91b715f18f7f9e9b9bcd921a3387f04e5a3dc7d3 (patch)
tree344ff2b0be71a8d652abbed365d0f79da5b5248b
parent1ec035ead3d72c0767c1c532abfe93ef75087d4b (diff)
disable or substitute "compatible" icons that cannot be displayed by the stock Menlo on macOS
-rw-r--r--config/p10k-classic.zsh3
-rw-r--r--config/p10k-lean.zsh2
-rwxr-xr-xinternal/icons.zsh2
-rwxr-xr-xinternal/wizard.zsh4
4 files changed, 7 insertions, 4 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index 921c5166..6bcb8645 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -263,7 +263,8 @@ fi
# Enable special styling for non-writable directories.
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='⭐'
# Custom prefix.
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 6f21e5e8..09263d0d 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -245,7 +245,7 @@ fi
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=true
# 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.
- # POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
+ # typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Custom prefix.
# typeset -g POWERLEVEL9K_DIR_PREFIX='%fin '
diff --git a/internal/icons.zsh b/internal/icons.zsh
index c74fe909..cacbb535 100755
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -432,7 +432,7 @@ function _p9k_init_icons() {
RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' # 
CARRIAGE_RETURN_ICON '\u21B5' # ↵
ROOT_ICON '\u26A1' # ⚡
- SUDO_ICON '\uE0A2' # 
+ SUDO_ICON ''
RUBY_ICON 'Ruby'
AWS_ICON 'AWS'
AWS_EB_ICON '\U1F331' # 🌱
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 9e5d4b8f..d8e251ce 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1217,8 +1217,10 @@ function generate_config() {
fi
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 "'⇶'"
+ uncomment 'typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION'
+ sub DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION "'∅'"
fi
if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then