mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-19 22:11:57 +00:00
source .p10k.zsh only if it exists
This commit is contained in:
parent
5a94a0c9eb
commit
a29b8264e5
1 changed files with 2 additions and 2 deletions
|
@ -949,12 +949,12 @@ function write_zshrc() {
|
||||||
local comments=(
|
local comments=(
|
||||||
"# To customize prompt, run \`p10k configure\` or edit $__p9k_cfg_path_u."
|
"# To customize prompt, run \`p10k configure\` or edit $__p9k_cfg_path_u."
|
||||||
)
|
)
|
||||||
print -lr -- "" $comments "source $__p9k_cfg_path_u" >>$__p9k_zshrc
|
print -lr -- "" $comments "[[ -f $__p9k_cfg_path_u ]] && source $__p9k_cfg_path_u" >>$__p9k_zshrc
|
||||||
|
|
||||||
print -P ""
|
print -P ""
|
||||||
print -P "The following lines have been appended to %4F$__p9k_zshrc_u%f:"
|
print -P "The following lines have been appended to %4F$__p9k_zshrc_u%f:"
|
||||||
print -P ""
|
print -P ""
|
||||||
print -lP -- ' '${^comments} " %2Fsource%f %B$__p9k_cfg_path_u%b"
|
print -lP -- ' '${^comments} " %3F[[%f %B-f $__p9k_cfg_path_u%b %3F]]%f && %2Fsource%f %B$__p9k_cfg_path_u%b"
|
||||||
}
|
}
|
||||||
|
|
||||||
if (( force )); then
|
if (( force )); then
|
||||||
|
|
Loading…
Reference in a new issue