aboutsummaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-09-15 20:50:00 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-09-15 20:50:11 +0300
commitf14b58e44f486758aa78920701f9e4a600ae0c75 (patch)
treef48537634361f910a7fbf9b9e9f6c2451c24cf2b /internal/wizard.zsh
parent4d1fba340f4c3a224fbf7d57205b4d4f584d6245 (diff)
wizard: recognize `source $POWERLEVEL9K_CONFIG_FILE` in .zshrc
Diffstat (limited to 'internal/wizard.zsh')
-rw-r--r--internal/wizard.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index cd62a384..81c967ce 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1576,7 +1576,9 @@ function ask_zshrc_edit() {
local h7='$ZDOTDIR/.p10k.zsh'
local h8='"$ZDOTDIR/.p10k.zsh"'
local h9='"$ZDOTDIR"/.p10k.zsh'
- if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##($f1|$f2|$f3|$f4|$g1|$h0|$h1|$h2|$h3|$h4|$h5|$h6|$h7|$h8|$h9)(|[[:space:]]*|'#'*)} ]]; then
+ 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
zshrc_has_cfg=1
fi
local pre='${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh'