mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-02-16 15:54:29 +01:00
be less strict when detecting the presence of .p10k.zsh in .zshrc
This commit is contained in:
parent
723d48d5c0
commit
5a94a0c9eb
1 changed files with 1 additions and 1 deletions
|
@ -940,7 +940,7 @@ function write_zshrc() {
|
||||||
local f5="'$f1'"
|
local f5="'$f1'"
|
||||||
local f6="\"$f1\""
|
local f6="\"$f1\""
|
||||||
local f7="\"$f3\""
|
local f7="\"$f3\""
|
||||||
if [[ -n ${(@M)lines:#(#b)source[[:space:]]##($f1|$f2|$f3|$f4|$f5|$f6|$f7)*} ]]; then
|
if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##($f1|$f2|$f3|$f4|$f5|$f6|$f7)*} ]]; then
|
||||||
print -P "No changes have been made to %4F$__p9k_zshrc_u%f because it already sources %2F$__p9k_cfg_path_u%f."
|
print -P "No changes have been made to %4F$__p9k_zshrc_u%f because it already sources %2F$__p9k_cfg_path_u%f."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue