From 9e926666d0ec43aaacc78b592bb4faaea3fc8c43 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 25 Jan 2023 16:03:16 -0600 Subject: [PATCH] fix: load compinit earlier --- lib/env.zsh | 2 ++ lib/prompt.zsh | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/env.zsh b/lib/env.zsh index 38cbde8..948bbb5 100755 --- a/lib/env.zsh +++ b/lib/env.zsh @@ -16,6 +16,8 @@ export LS_COLORS="ow=1;34:tw=1;34:st=00;" # add completions to fpath fpath=($DOTFILES_DIR/lib/completions $fpath) +autoload -Uz compinit && compinit + # Append to the history file, rather than overwriting it setopt APPEND_HISTORY diff --git a/lib/prompt.zsh b/lib/prompt.zsh index e6e82f5..2435063 100755 --- a/lib/prompt.zsh +++ b/lib/prompt.zsh @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -autoload -Uz compinit -compinit - is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)" if is-executable starship; then