diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-11 14:24:20 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-11 14:24:20 +0300 |
commit | 90bf4c3fef4c0c61d7b4f43bacc17886d30dbf83 (patch) | |
tree | 59106e328bb0a98b94e04bf3a4080ab38e1b1ab8 | |
parent | 5b9e75be3a6fc4a866ca0289b8697c71259045f2 (diff) |
restore "?" as VCS_UNTRACKED_ICON in lean and classic styles
-rwxr-xr-x | internal/wizard.zsh | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 22f0a4b6..5b396aa1 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1278,18 +1278,20 @@ function generate_config() { sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'" sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'" sub OS_ICON_CONTENT_EXPANSION "'%B\${P9K_CONTENT// }'" - uncomment 'typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON' - uncomment 'typeset -g POWERLEVEL9K_VCS_UNSTAGED_ICON' - uncomment 'typeset -g POWERLEVEL9K_VCS_STAGED_ICON' - uncomment 'typeset -g POWERLEVEL9K_VCS_STASH_ICON' - uncomment 'typeset -g POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON' - uncomment 'typeset -g POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON' - sub VCS_UNTRACKED_ICON "'${icons[VCS_UNTRACKED_ICON]// }'" - sub VCS_UNSTAGED_ICON "'${icons[VCS_UNSTAGED_ICON]// }'" - sub VCS_STAGED_ICON "'${icons[VCS_STAGED_ICON]// }'" - sub VCS_STASH_ICON "'${icons[VCS_STASH_ICON]// }'" - sub VCS_INCOMING_CHANGES_ICON "'${icons[VCS_INCOMING_CHANGES_ICON]// }'" - sub VCS_OUTGOING_CHANGES_ICON "'${icons[VCS_OUTGOING_CHANGES_ICON]// }'" + if [[ $style == p9k ]]; then + uncomment 'typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON' + uncomment 'typeset -g POWERLEVEL9K_VCS_UNSTAGED_ICON' + uncomment 'typeset -g POWERLEVEL9K_VCS_STAGED_ICON' + uncomment 'typeset -g POWERLEVEL9K_VCS_STASH_ICON' + uncomment 'typeset -g POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON' + uncomment 'typeset -g POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON' + sub VCS_UNTRACKED_ICON "'${icons[VCS_UNTRACKED_ICON]// }'" + sub VCS_UNSTAGED_ICON "'${icons[VCS_UNSTAGED_ICON]// }'" + sub VCS_STAGED_ICON "'${icons[VCS_STAGED_ICON]// }'" + sub VCS_STASH_ICON "'${icons[VCS_STASH_ICON]// }'" + sub VCS_INCOMING_CHANGES_ICON "'${icons[VCS_INCOMING_CHANGES_ICON]// }'" + sub VCS_OUTGOING_CHANGES_ICON "'${icons[VCS_OUTGOING_CHANGES_ICON]// }'" + fi else sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'" sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'" |