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.47k stars 947 forks source link

[Docs] [Next] User config must occur before sourcing `oh-my-zsh.sh` #1216

Open ChrisBaker97 opened 5 years ago

ChrisBaker97 commented 5 years ago

I was having a hard time getting the next branch up and running on my machine. After much trial and error and lots of echo statements sprinkled throughout the powerlevel9k code as well as my own config files, I came to the realization that, unlike 0.6.7, the 0.7.0 branch was caching a lot of info the first time it was called, and all of my configuration information (which had always resided in .zshrc after source $ZSH/oh-my-zsh.sh) was not being applied. Segments that weren't in the default set were throwing errors because their functions weren't being loaded. I ended up making a separate .p9krc file to be sourced from .zshrc right before oh-my-zsh.sh.

Anyway, I'm not sure what the best location is, but this info should probably find its way into the docs for the next branch, since I'm probably not the only one who was passing their config in the "User Configuration" section of the .zshrc that's generated with a stock oh-my-zsh install.

Syphdias commented 5 years ago

I tried to tackle this in #1265.