Skip to content

Commit

Permalink
Turn off git information
Browse files Browse the repository at this point in the history
  • Loading branch information
kbwo committed Oct 31, 2024
1 parent 92b8e90 commit 0b1feb6
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,23 @@ prompt_pure_preprompt_render() {
preprompt_parts+=('%F{${prompt_pure_colors[path]}}%~%f')

# Git branch and dirty status info.
typeset -gA prompt_pure_vcs_info
if [[ -n $prompt_pure_vcs_info[branch] ]]; then
preprompt_parts+=("%F{$git_color}"'${prompt_pure_vcs_info[branch]}'"%F{$git_dirty_color}"'${prompt_pure_git_dirty}%f')
fi
# Git action (for example, merge).
if [[ -n $prompt_pure_vcs_info[action] ]]; then
preprompt_parts+=("%F{$prompt_pure_colors[git:action]}"'$prompt_pure_vcs_info[action]%f')
fi
# Git pull/push arrows.
if [[ -n $prompt_pure_git_arrows ]]; then
preprompt_parts+=('%F{$prompt_pure_colors[git:arrow]}${prompt_pure_git_arrows}%f')
fi
# Git stash symbol (if opted in).
if [[ -n $prompt_pure_git_stash ]]; then
preprompt_parts+=('%F{$prompt_pure_colors[git:stash]}${PURE_GIT_STASH_SYMBOL:-≡}%f')
if [[ $prompt_pure_vcs_info[top] != $HOME ]]; then
typeset -gA prompt_pure_vcs_info
if [[ -n $prompt_pure_vcs_info[branch] ]]; then
preprompt_parts+=("%F{$git_color}"'${prompt_pure_vcs_info[branch]}'"%F{$git_dirty_color}"'${prompt_pure_git_dirty}%f')
fi
# Git action (for example, merge).
if [[ -n $prompt_pure_vcs_info[action] ]]; then
preprompt_parts+=("%F{$prompt_pure_colors[git:action]}"'$prompt_pure_vcs_info[action]%f')
fi
# Git pull/push arrows.
if [[ -n $prompt_pure_git_arrows ]]; then
preprompt_parts+=('%F{$prompt_pure_colors[git:arrow]}${prompt_pure_git_arrows}%f')
fi
# Git stash symbol (if opted in).
if [[ -n $prompt_pure_git_stash ]]; then
preprompt_parts+=('%F{$prompt_pure_colors[git:stash]}${PURE_GIT_STASH_SYMBOL:-≡}%f')
fi
fi

# Execution time.
Expand Down

0 comments on commit 0b1feb6

Please sign in to comment.