diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-01 20:32:01 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-01 20:32:01 +0300 |
commit | 5a94a0c9ebd69349abfafae8fdab7f2c4e368210 (patch) | |
tree | 38d404cff242d35a60a695272fa78fd366bb2305 /internal/wizard.zsh | |
parent | 723d48d5c09951e93c5e7fe22228a79c5ece5dad (diff) |
be less strict when detecting the presence of .p10k.zsh in .zshrc
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index b528f5f4..8f34fa1d 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -940,7 +940,7 @@ function write_zshrc() { local f5="'$f1'" local f6="\"$f1\"" 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." return fi |