diff options
author | Kaleb Elwert <belak@coded.io> | 2017-04-20 03:40:41 +0300 |
---|---|---|
committer | Kaleb Elwert <belak@coded.io> | 2017-04-20 03:40:41 +0300 |
commit | f46c1bc11b4bd41be1f6feac61d1944891aa6830 (patch) | |
tree | 4074c33a06fab255cd4dce88f0cd872a8dcac11d /powerlevel9k.zsh-theme | |
parent | 25fc2fb03e37eb232bbcb0f63a791fc78d491b6f (diff) |
Add prompt_opts to prompt setup function
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 4d8d1c39..3b8ac49f 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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) |