1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Add prompt_opts to prompt setup function

This commit is contained in:
Kaleb Elwert 2017-04-19 17:40:41 -07:00
parent 25fc2fb03e
commit f46c1bc11b

View file

@ -1336,6 +1336,12 @@ prompt_powerlevel9k_setup() {
# Maximum integer on 32-bit CPUs # Maximum integer on 32-bit CPUs
_P9K_TIMER_START=2147483647 _P9K_TIMER_START=2147483647
prompt_opts=(subst percent)
# borrowed from promptinit, sets the prompt options in case pure was not
# initialized via promptinit.
setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}"
# Display a warning if the terminal does not support 256 colors # Display a warning if the terminal does not support 256 colors
local term_colors local term_colors
term_colors=$(echotc Co 2>/dev/null) term_colors=$(echotc Co 2>/dev/null)