Skip to content

Commit

Permalink
Optimize zsh-completions and my-completions loading
Browse files Browse the repository at this point in the history
Now we don't recompiled the completions twice, at least. However, this
could probably be done better if OMZ supported such a thing, at least
for zsh-completions.

References ohmyzsh/ohmyzsh#10412
References zsh-users/zsh-completions#603
  • Loading branch information
felipecrs committed Nov 12, 2021
1 parent 95b5676 commit 6e19c62
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
Empty file.

This file was deleted.

7 changes: 3 additions & 4 deletions home/dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@ plugins=(
dotenv
zsh-syntax-highlighting
zsh-autosuggestions
zsh-completions
my-completions
)

source "$ZSH/oh-my-zsh.sh"
# https://github.com/zsh-users/zsh-completions/issues/603
fpath+="${ZSH_CUSTOM:-"$ZSH/custom"}/plugins/zsh-completions/src"

# https://github.com/ohmyzsh/ohmyzsh/issues/10412
autoload -U compinit && compinit
source "$ZSH/oh-my-zsh.sh"

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

0 comments on commit 6e19c62

Please sign in to comment.