1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 21:40:08 +00:00

drop q+ as it it's not supported by old shells

This commit is contained in:
romkatv 2019-09-06 11:46:30 +02:00
parent ef6f90f598
commit 5886154bb1

View file

@ -1349,11 +1349,10 @@ function write_zshrc() {
local f0=$__p9k_cfg_path local f0=$__p9k_cfg_path
local f1=${(q)f0} local f1=${(q)f0}
local f2=${(q-)f0} local f2=${(q-)f0}
local f3=${(q+)f0} local f3=${(qq)f0}
local f4=${(qq)f0} local f4=${(qqq)f0}
local f5=${(qqq)f0}
local g1=${${(q)__p9k_cfg_path}/#(#b)${(q)HOME}\//'~/'} local g1=${${(q)__p9k_cfg_path}/#(#b)${(q)HOME}\//'~/'}
if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##($f1|$f2|$f3|$f4|$f5|$g1)(|[[:space:]]*|'#'*)} ]]; then if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##($f1|$f2|$f3|$f4|$g1)(|[[:space:]]*|'#'*)} ]]; then
flowing +c No changes have been made to %4F$__p9k_zshrc_u%f because it already sources %2F$__p9k_cfg_path_u%f. flowing +c 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