powerlevel9k icon indicating copy to clipboard operation
powerlevel9k copied to clipboard

Default .zshrc file mistakenly calls all variables P9K_... instead of POWERLEVEL9K_...

Open lazarillo opened this issue 6 years ago • 1 comments

Describe Your Issue

What is happening?

I have fixed the problem, but what was happening was that my initial .zshrc file used the environment variable prefix of P9K_ instead of POWERLEVEL9K_, as you can see in the screenshot below.

powerlevel9k_screenshot

Have you tried to debug or fix it?

Yes, I eventually fixed this, but it was a big pain because it's one of those things you can stare at for hours and not notice, since subconsciously I kept seeing P9K as POWERLEVEL9K.

Environment Information

This information will help us understand your configuration.

  • What version of ZSH are you using? You can use zsh --version to see this.

zsh 5.4.2 (x86_64-ubuntu-linux-gnu)

  • Do you use a ZSH framework (e.g., Oh-My-ZSH, Antigen)?

Yes, Oh-My-ZSH. I used the instructions found here to install it. (This is a fresh install.)

  • How did you install P9k (cloning the repo, by tarball, a package from your OS, etc.,)?

I cannot remember now, but I think by cloning the repo.

  • What version of P9k are you using?

0.6.7, the newest as of June, 2019

  • Which terminal emulator do you use?

Terminator and the default Ubuntu terminal. (I have Ubuntu 18.04.)


Final Note

It's unclear to me if I should change all of the P9K_... environment variables over to POWERLEVEL9K_.... So, while this bug report is mostly to report it - I have solved the major issues for myself - I would like to know whether I should fix all of these P9K_... variables in my .zshrc file.

Thanks!

lazarillo avatar Jun 19 '19 06:06 lazarillo

Default .zshrc file mistakenly calls all variables P9K_... instead of POWERLEVEL9K_... [...] my initial .zshrc file used the environment variable prefix of P9K_ instead of POWERLEVEL9K_

When you say "default" and "initial", what do you mean? Where did you get this .zshrc file?

Perhaps you've copied the config from https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config#p9kgt? This wiki page is community managed. None of the configs presented in there are officially endorsed, officially recommended or officially supported. This particular config is evidently for the next branch of p9k -- a bleeding edge branch with active development. You are free to use it but you'll need to have higher tolerance for bugs and breaking changes. Features from next eventually make it into master after rigorous testing. Most users are on master.

If you really want to use this config as is, run git checkout next in powerlevel9k directory. I don't recommend it though.

You can also try renaming all P9K variables to POWERLEVEL9K. Most of them will work. Some may not.

I would like to know whether I should fix all of these P9K_... variables in my .zshrc file.

Up to you. Right now these variables have no effect on your theme. If it looks fine to you, you can delete these parameters.

romkatv avatar Jun 19 '19 08:06 romkatv