mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
Add prompt_opts to prompt setup function
This commit is contained in:
parent
25fc2fb03e
commit
f46c1bc11b
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue