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.46k stars 948 forks source link

How can I only show the branch of VCS? #1257

Closed Leviathan1995 closed 5 years ago

Leviathan1995 commented 5 years ago

I use powerlevel9k, but I only want to show the branch of VCS, no other messages. How can I only show the branch of VCS? In fact, I think vcs.zsh is very slow to scan all of the things.

Leviathan1995 commented 5 years ago

okay, I solve it, just add this line:

POWERLEVEL9K_VCS_GIT_HOOKS=(git-remotebranch)
romkatv commented 5 years ago

@Leviathan1995 If you keep POWERLEVEL9K_VCS_GIT_HOOKS unchanged and enable Powerlevel10k, is it also slow?

Leviathan1995 commented 5 years ago

@rawkode sorry, I don't do any trying, but what is the difference between 10 with 9?

romkatv commented 5 years ago

@Leviathan1995 Powerlevel10k is supposed to be faster than Powerlevel9k and identical in all other respects.