Skip to content

Commit

Permalink
feat(remote): only show remote symbol if there is also a push remote
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Aug 15, 2023
1 parent 198e791 commit 8ee7c07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-prompt-kit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,10 @@ _git_prompt_kit_update_git() {
GIT_PROMPT_KIT_REMOTE+="%F{$color_remote}"
fi

if (( triangular_workflow )); then
GIT_PROMPT_KIT_REMOTE+="$GIT_PROMPT_KIT_SYMBOL_REMOTE"
fi
fi

if (( show_remote )); then
GIT_PROMPT_KIT_REMOTE+="$VCS_STATUS_REMOTE_NAME"
Expand Down

0 comments on commit 8ee7c07

Please sign in to comment.