zsh-completions icon indicating copy to clipboard operation
zsh-completions copied to clipboard

Each reboot requires a compinit run.

Open cathaysia opened this issue 4 years ago • 2 comments

Hello! Thanks for your work on zsh. Now I find I need a compinit run after each reboot.

All of information at here:

System: ArchLinux ZSH Path: /etc/oh-my-zsh zsh-completions: /etc/oh-my-zsh/plugins/zsh-completions plugins=(git sudo zsh-autosuggestions zsh-completions)

I want a completion of firewalld, it works. But I need a compinit each reboot. How I fix this problem?

cathaysia avatar Mar 09 '20 06:03 cathaysia

I'm seeing this each time I launch a new terminal instance. Running compinit manually it works, but I have

plugins=(git zsh-completions zsh-syntax-highlighting)
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh

in my .zshrc? I also tried:

plugins=(git zsh-completions zsh-syntax-highlighting)
fpath=($ZSH/custom/plugins/zsh-completions/src $fpath)
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh

with the same result

bwoodruff avatar Mar 16 '20 03:03 bwoodruff

@bwoodruff Put autoload -U compinit && compinit after source $ZSH/oh-my-zsh.sh

kuasha420 avatar Oct 20 '20 03:10 kuasha420