romkatv / powerlevel10k

A Zsh theme
MIT License
45.76k stars 2.16k forks source link

No options for Classic and Rainbow styles in p10k configure #2672

Closed TsubasaEX closed 4 months ago

TsubasaEX commented 4 months ago

No options for Classic and Rainbow styles in p10k configure.

I tried the steps here for installation but I can't get other styles except lean one.

  1. git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

  2. Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.

image

romkatv commented 4 months ago

See FAQ: https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#some-prompt-styles-are-missing-from-the-configuration-wizard

TsubasaEX commented 4 months ago

Thank you for the prompt reply.

I followed the FAQ and run the commands to check my environment but don't get the cause here. image

What I missed here is I don't get the following selection to select the prompt styles. The picture is from one of the tutorials on youtube.

image

romkatv commented 4 months ago

From the FAQ linked above:

If the terminal can display fewer than 256 colors, configuration wizard preselects Lean style with 8 colors. All other styles require at least 256 colors. Fix: Use a terminal with 256 color support and make sure that TERM environment variable is set correctly. Verify with print $terminfo[colors].

Your screenshot indicates that the output of print $terminfo[colors] is 8, so this is the culprit.

TsubasaEX commented 4 months ago

Thank you for pointing this out. Finally, I change my env with TERM=xterm-256color and it works perfectly.

Really appreciate your prompt support!! :thumbsup: :thumbsup: :thumbsup: I will enjoy your powerful and stylish features. :smile:

image

romkatv commented 4 months ago

Nice!