Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.47k stars 947 forks source link

vcs_segment shows incorrect remote repo icon when tracking remote isn't called "origin" #1208

Closed romkatv closed 5 years ago

romkatv commented 5 years ago

Tested on master with the default config.

  1. Clone a repo from github.
  2. cd into it.
  3. Observe the presence of github icon in the vcs prompt.
  4. git remote rename origin source
  5. Observe the git (not github) icon in the vcs prompt.

Expected: 5 shows github icon. After all, the repo still has its tracking remote pointing to github. If you run git pull, it'll pull from github. Actual: 5 shows git icon.

romkatv commented 5 years ago

Sorry, this actually works fine. Closing.