Yay zsh autocomplete not working

I’m not sure how long this has been a problem and I swear this worked before, but I am using zsh with oh-my-zsh and am unable to get yay to tab complete a package.

I’ve tried the following:

None of it has worked. What am I missing?

yay -Yc


Just offers to remove a bunch of packages:

checking dependencies...

Packages (22) enca-1.19-4  glib2-docs-2.64.4-1  gobject-introspection-1.64.1-2  graphviz-2.44.1-3  gtk-doc-1.32+37+gefc3644-1  gts-
itstool-1:2.0.6-2  js60-60.9.0-2  libmng-2.0.3-3  libxvmc-1.0.12-3  meson-0.55.1-1  ninja-1.10.0-1  python-anytree-2.8.0-1
python-beaker-1.11.0-4  python-lxml-4.5.2-1  python-mako-1.1.3-1  python-markdown-3.2.2-1  python-pygments-2.6.1-3
python-qscintilla-qt5-2.11.5-1  qscintilla-qt5-2.11.5-1  recode-3.7.7-1  vala-0.48.9-1

Total Removed Size:  154.65 MiB

:: Do you want to remove these packages? [Y/n]

yay -Yc → Clean unneeded dependencies.

1 Like

Ah! Unless I need to do more than restart the terminal, that didn’t help.

1 Like

look at " Completion problems " Could be oh-my-zsh problem .

Just get chmod: missing operand after ‘g-w,o-w’ after running the 1st command from there.

Edit: anyone else got an idea?

I don’t use oh-my-zsh (I find it hopelessly slow and bloated, as well as difficult to understand). And even if i did, I can’t possibly debug it.

However, here is what I have in my .zshrc regarding zsh-completions:

autoload -Uz compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' rehash true  
zmodload zsh/complist

Of course, the package zsh-completions has to be installed for this to work.

Tab completion works for yay on my end. For example, I type:

yay -S minecr

and hit Tab and I get a menu:

minecraft                      minecraft-multi-server         minecraft-pi                   minecraftsp-anjocaido        
minecraft-bedrock-server       minecraft-overviewer           minecraft-region-fixer         minecraft-technic-launcher   
minecrafter-ttf                minecraft-overviewer-docs      minecraft-save-seed-reader     minecurses-git               
minecraft-launcher             minecraft-overviewer-docs-git  minecraft-server                                            
minecraft-launcher-beta        minecraft-overviewer-git       minecraft-shiginima