aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xpowerlevel9k.zsh-theme4
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..416cfaac
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.zwc
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index f44e6870..8a0dc15b 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -27,6 +27,10 @@ typeset -g __p9k_root_dir="${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}}"
return
fi
typeset -gr __p9k_sourced=1
+ local f
+ for f in $__p9k_root_dir/{powerlevel9k.zsh-theme,powerlevel10k.zsh-theme,internal/p10k.zsh,internal/icons.zsh,internal/configure.zsh,gitstatus/gitstatus.plugin.zsh}; do
+ [[ $f.zwc -nt $f ]] || zcompile $f
+ done
source $__p9k_root_dir/internal/p10k.zsh || true
}