add p10k reload and call it from all standard configs

This commit is contained in:
romkatv
2019-11-21 09:24:29 +01:00
parent 8a759305dd
commit fdb90994c9
6 changed files with 35 additions and 4 deletions
+4
View File
@@ -912,6 +912,10 @@
# can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
# really need it.
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
# If p10k is already loaded, reload configuration.
# This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.
(( ! $+functions[p10k] )) || p10k reload
}
(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}