mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
Add prompt_opts to prompt setup function
This commit is contained in:
parent
25fc2fb03e
commit
f46c1bc11b
@ -1336,6 +1336,12 @@ prompt_powerlevel9k_setup() {
|
||||
# Maximum integer on 32-bit CPUs
|
||||
_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
|
||||
local term_colors
|
||||
term_colors=$(echotc Co 2>/dev/null)
|
||||
|
Loading…
Reference in New Issue
Block a user