Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

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

Open
iilonmasc wants to merge 2 commits intoPowerlevel9k:nextfrom
iilonmasc:feature/reset-function
Open

[Enhancement]: add p9k::reset_prompt function#1198
iilonmasc wants to merge 2 commits intoPowerlevel9k:nextfrom
iilonmasc:feature/reset-function

Conversation

@iilonmasc
Copy link
Member

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

iilonmasc and others added 2 commits March 14, 2019 19:15
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 Powerlevel9k#1172
@onaforeignshore
Copy link
Contributor

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
Copy link
Member Author

iilonmasc commented Mar 18, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants