romkatv / powerlevel10k

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

Replace asdf prompt plugin names with icons #2643

Open matthewadams opened 5 months ago

matthewadams commented 5 months ago

I'm noticing that the asdf prompt takes up a lot of real estate. If possible, can you replace plugin names with, say, favicon.ico images or emoji-like glyphs? Like, spring-boot could be replaced with image, kotlin with image, java with image, etc., scaling these to appropriate sizes.

Only if one wasn't known would you render the word.

romkatv commented 5 months ago

This is already being done to some extent if you have a capable font. In any case, you can customize these icons by editing ~/.p10k.zsh. E.g., to customize the java icon, uncomment this line and set its value to the desired icon: https://github.com/romkatv/powerlevel10k/blob/178fcda3487afb3bd540d784cf472c60ec0de94a/config/p10k-lean.zsh#L671