1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-13 16:40:08 +00:00

restore "?" as VCS_UNTRACKED_ICON in lean and classic styles

This commit is contained in:
romkatv 2019-10-11 13:24:20 +02:00
parent 5b9e75be3a
commit 90bf4c3fef

View file

@ -1278,6 +1278,7 @@ function generate_config() {
sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'" sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'"
sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'" sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'"
sub OS_ICON_CONTENT_EXPANSION "'%B\${P9K_CONTENT// }'" sub OS_ICON_CONTENT_EXPANSION "'%B\${P9K_CONTENT// }'"
if [[ $style == p9k ]]; then
uncomment 'typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON' uncomment 'typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON'
uncomment 'typeset -g POWERLEVEL9K_VCS_UNSTAGED_ICON' uncomment 'typeset -g POWERLEVEL9K_VCS_UNSTAGED_ICON'
uncomment 'typeset -g POWERLEVEL9K_VCS_STAGED_ICON' uncomment 'typeset -g POWERLEVEL9K_VCS_STAGED_ICON'
@ -1290,6 +1291,7 @@ function generate_config() {
sub VCS_STASH_ICON "'${icons[VCS_STASH_ICON]// }'" sub VCS_STASH_ICON "'${icons[VCS_STASH_ICON]// }'"
sub VCS_INCOMING_CHANGES_ICON "'${icons[VCS_INCOMING_CHANGES_ICON]// }'" sub VCS_INCOMING_CHANGES_ICON "'${icons[VCS_INCOMING_CHANGES_ICON]// }'"
sub VCS_OUTGOING_CHANGES_ICON "'${icons[VCS_OUTGOING_CHANGES_ICON]// }'" sub VCS_OUTGOING_CHANGES_ICON "'${icons[VCS_OUTGOING_CHANGES_ICON]// }'"
fi
else else
sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'" sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'"
sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'" sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'"