romkatv / powerlevel10k

A Zsh theme
MIT License
44.25k stars 2.12k forks source link

Adding a class to directory classes #2667

Closed tobias-groeger closed 1 month ago

tobias-groeger commented 1 month ago

Hi, is there a way to add a new directory class (to POWERLEVEL9K_DIR_CLASSES) while still keeping all the default classes intact? As stated in https://github.com/romkatv/powerlevel10k/issues/2345, defining the POWERLEVEL9K_DIR_CLASSES variable as suggested in the generated config will remove all classes used by default.

Additionally, in that issue the user seems to have figured out how to add his class to this variable, however I am unable to achieve the same. Simply adding to the variable instead of overwriting it doesn't seem to work and also removes all defaults.

romkatv commented 1 month ago

You have to define all classes by yourself. It's not too difficult though. Definitely less work than creating this issue, for example.

tobias-groeger commented 1 month ago

Ok, thanks for the quick answer.