jiibus
August 21, 2020, 1:25am
1
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?
jiibus
August 21, 2020, 1:35am
3
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-0.7.6.121130-2
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
jiibus
August 21, 2020, 1:38am
5
Ah! Unless I need to do more than restart the terminal, that didn’t help.
1 Like
Shjim
August 21, 2020, 2:12am
6
🙃 A delightful community-driven (with 2,000+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...
look at " Completion problems " Could be oh-my-zsh problem .
jiibus
August 21, 2020, 2:16am
7
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
compinit
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
3 Likes
I got problem when type yay -S google
then tab
key, it return for me alot packages about android, I had been try your frist command rm ~/.cache/yay/completion.cache
and it’s work. Thank you
Hi, I would suggest you start a new thread as this thread is 4 years old, and welcome to the forums.