From 5d7712e3887fe6812ee0ea16fb3a2ecc6cba2d6f Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Thu, 28 Jan 2021 14:15:20 +0100 Subject: [PATCH] p10k tweaks --- zsh/p10k.zsh | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/zsh/p10k.zsh b/zsh/p10k.zsh index a905ce1..4cc242d 100644 --- a/zsh/p10k.zsh +++ b/zsh/p10k.zsh @@ -171,38 +171,20 @@ #typeset -g POWERLEVEL9K_DIR_PREFIX='%fin ' #####################################[ vcs: git status ]###################################### - # Grey Git prompt. This makes stale prompts indistinguishable from up-to-date ones. typeset -g POWERLEVEL9K_VCS_FOREGROUND=246 - - # Disable async loading indicator to make directories that aren't Git repositories - # indistinguishable from large Git repositories without known state. + typeset -g POWERLEVEL9K_VCS_LOADING_FOREGROUND=240 typeset -g POWERLEVEL9K_VCS_LOADING_TEXT= - - # Don't wait for Git status even for a millisecond, so that prompt always updates - # asynchronously when Git state changes. typeset -g POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0 - - # Cyan ahead/behind arrows. - typeset -g POWERLEVEL9K_VCS_{INCOMING,OUTGOING}_CHANGESFORMAT_FOREGROUND=$cyan - # Don't show remote branch, current tag or stashes. + typeset -g POWERLEVEL9K_VCS_{INCOMING,OUTGOING}_CHANGESFORMAT_FOREGROUND= typeset -g POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-untracked git-aheadbehind git-stash) - # Don't show the branch icon. typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='' - # When in detached HEAD state, show @commit where branch normally goes. typeset -g POWERLEVEL9K_VCS_COMMIT_ICON='@' - # Don't show staged, unstaged, untracked indicators. typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED}_ICON= - # Show '*' when there are staged, unstaged or untracked files. typeset -g POWERLEVEL9K_VCS_DIRTY_ICON='*' - # Show '⇣' if local branch is behind remote. typeset -g POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON=':⇣' - # Show '⇡' if local branch is ahead of remote. typeset -g POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON=':⇡' - # Don't show the number of commits next to the ahead/behind arrows. typeset -g POWERLEVEL9K_VCS_{COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=1 - # Remove space between '⇣' and '⇡' and all trailing spaces. typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${${${P9K_CONTENT/⇣* :⇡/⇣⇡}// }//:/ }' - # Other icons typeset -g POWERLEVEL9K_VCS_STASH_ICON='≡' typeset -g POWERLEVEL9K_VCS_GIT_ICON='\uF126' typeset -g POWERLEVEL9K_VCS_GIT_GITHUB_ICON='\uF126'