mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
disable mmap when loading powerlevel10k; maybe it'll help with #490
This commit is contained in:
parent
3fff07357d
commit
9a0e093e0e
@ -5381,7 +5381,7 @@ _p9k_dump_instant_prompt() {
|
|||||||
exec {fd}>&-
|
exec {fd}>&-
|
||||||
}
|
}
|
||||||
zf_mv -f $tmp $root_file || return
|
zf_mv -f $tmp $root_file || return
|
||||||
zcompile $root_file || return
|
zcompile -R $root_file || return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local tmp=$prompt_file.tmp.$$
|
local tmp=$prompt_file.tmp.$$
|
||||||
@ -5463,7 +5463,7 @@ function _p9k_dump_state() {
|
|||||||
exec {fd}>&-
|
exec {fd}>&-
|
||||||
}
|
}
|
||||||
zf_mv -f $tmp $__p9k_dump_file || return
|
zf_mv -f $tmp $__p9k_dump_file || return
|
||||||
zcompile $__p9k_dump_file
|
zcompile -R $__p9k_dump_file
|
||||||
}
|
}
|
||||||
|
|
||||||
function _p9k_restore_state() {
|
function _p9k_restore_state() {
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
|
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
|
||||||
local f
|
local f
|
||||||
for f in $__p9k_root_dir/{powerlevel9k.zsh-theme,powerlevel10k.zsh-theme,internal/p10k.zsh,internal/icons.zsh,internal/configure.zsh,internal/worker.zsh,internal/parser.zsh,gitstatus/gitstatus.plugin.zsh}; do
|
for f in $__p9k_root_dir/{powerlevel9k.zsh-theme,powerlevel10k.zsh-theme,internal/p10k.zsh,internal/icons.zsh,internal/configure.zsh,internal/worker.zsh,internal/parser.zsh,gitstatus/gitstatus.plugin.zsh}; do
|
||||||
[[ $f.zwc -nt $f ]] || zcompile $f
|
[[ $f.zwc -nt $f ]] || zcompile -R $f
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
source $__p9k_root_dir/internal/p10k.zsh || true
|
source $__p9k_root_dir/internal/p10k.zsh || true
|
||||||
|
Loading…
Reference in New Issue
Block a user