aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-11-30 11:47:34 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-11-30 11:47:34 +0300
commit211c90343f51884ed1655de4284ebe12342db9d8 (patch)
treeba6719e8228606edc5ae08e1d3cc590801ebe810 /internal
parent174ce9bf0166c657404a21f4dc9608da935f7325 (diff)
wizard: recognize `source -- ~.p10k.zsh` in .zshrc
Diffstat (limited to 'internal')
-rw-r--r--internal/wizard.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 589e0cfe..b87f0dfc 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -2026,7 +2026,7 @@ function check_zshrc_integration() {
local h9='"$ZDOTDIR"/.p10k.zsh'
local h10='$POWERLEVEL9K_CONFIG_FILE'
local h11='"$POWERLEVEL9K_CONFIG_FILE"'
- if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##($f1|$f2|$f3|$f4|$g1|$h0|$h1|$h2|$h3|$h4|$h5|$h6|$h7|$h8|$h9|$h10|$h11)(|[[:space:]]*|'#'*)} ]]; then
+ if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##(|--[[:space:]]##)($f1|$f2|$f3|$f4|$g1|$h0|$h1|$h2|$h3|$h4|$h5|$h6|$h7|$h8|$h9|$h10|$h11)(|[[:space:]]*|'#'*)} ]]; then
zshrc_has_cfg=1
fi
local pre='${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh'