summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-26 21:11:47 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-26 21:11:47 +0100
commite4e1afe1e53cb436d798ccc724ae9ca94f11736b (patch)
treed2257068d6984fa3c4421e4402b83c2d0cdefe82
parentzsh: add and migrate to xfirstcmd (diff)
zsh: move promptinit to before compinit
it just feels like it should be here, not there
-rw-r--r--dot_config/zsh/zshrc14
1 files changed, 7 insertions, 7 deletions
diff --git a/dot_config/zsh/zshrc b/dot_config/zsh/zshrc
index b0428f8..e7a20eb 100644
--- a/dot_config/zsh/zshrc
+++ b/dot_config/zsh/zshrc
@@ -65,16 +65,16 @@ t() {
# setup terminal integration / osc0
xzsource zshrc.{local,post}
-# if compinit hasn't ran, run it now
-# this way there's at least some minimum compatibility with /etc/zshrc
-if (( ! ${+_comps} )) {
- autoload -Uz compinit
- compinit -i
-}
-
# if promptinit hasn't ran, run it now, and set a default prompt
if (( ! ${+functions[prompt]} )) {
autoload -Uz promptinit
promptinit
prompt zstyle fish
}
+
+# if compinit hasn't ran, run it now
+# this way there's at least some minimum compatibility with /etc/zshrc
+if (( ! ${+_comps} )) {
+ autoload -Uz compinit
+ compinit -i
+}