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

[Enhancement]: add p9k::reset_prompt function #1198

Open iilonmasc opened 5 years ago

iilonmasc commented 5 years ago

This function clears every variable from p9k (egrep -i "^p9k_", it's case insensitive) and reloads the default p9k settings (taken from a clean useraccount with only p9k installed and no configuration)

closes #1172

onaforeignshore commented 5 years ago

The only problem I see with this is if a segment is updated with a change to the defaults and the person forgets to make the same change to the defaults.zsh file.

iilonmasc commented 5 years ago

This should probably be added to the developers guide then?

If a segment defines defaults for a variable, please add the default definition to functions/defaults.zsh