mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-24 06:52:36 +00:00
wizard: recognize source $POWERLEVEL9K_CONFIG_FILE
in .zshrc
This commit is contained in:
parent
4d1fba340f
commit
f14b58e44f
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user