Skip to content

Commit

Permalink
zsh(fix): compinit must be called at last
Browse files Browse the repository at this point in the history
Platform-dependent scripts may import more entries to FPATH.
  • Loading branch information
rennsax committed Jun 4, 2024
1 parent a1995eb commit 0f91b06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ bindkey -M listscroll '^n' down-line-or-history
# zsh-users/zsh-completions: additional completions
__load_plugin --no-defer zsh-completions

autoload -Uz compinit && compinit

# also show hidden files
_comp_options+=(globdots)

Expand All @@ -312,6 +310,7 @@ _comp_options+=(globdots)
# Outputs:
# (For portability, these OS-dependent scripts should define some parameters for further use.)
# - FZF_SCRIPT_BASE: the fzf installation directory.
# - Provide more FPATH entries

case "$OSTYPE" in
darwin*)
Expand Down Expand Up @@ -510,3 +509,7 @@ __plugin_dep=(
done
unset plugin plugins
}

#################### Final Initialization ##################

autoload -Uz compinit && compinit

0 comments on commit 0f91b06

Please sign in to comment.