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

zsh autosuggest completion not working.

Open drjkpalli opened this issue 2 years ago • 4 comments

ZSH_AUTOSUGGEST_STRATEGY=(history completion)

Hi, the completion strategy is not working for me on Mac OS Monterey. I am using oh my zsh

History suggestion works great but completion strategy doesn't work at all. Documentation says zpty module is required. Internet says it comes pre-installed with the latest versions of zsh. is there a way to install it if it doesn't come pre-installed ?

drjkpalli avatar Jul 25 '22 17:07 drjkpalli

I also can't get autosuggestion working on my Mac M1 with Monterey. Oh my zsh is working fine, powerlevel10k theme is working fine but nothing from zsh plugins wants to work.

I already tried uninstalling everything and re-install, same problem. Is there a known problem maybe on MacOS M1 SoC or Monterey?

codeagencybe avatar Aug 10 '22 09:08 codeagencybe

I also can't get completion strategy to work on my Macbook M2 with Monterey.

Ice1187 avatar Aug 29 '22 11:08 Ice1187

Yes, I was also facing issue with my newly purchased Mac M1 with Monterey OS. The problem got installed by removing plugins=(git zsh-autosuggesions) section and manually adding entry as the bottom-most line. checkout here Don't forget to thumbs-up, if it solves your problem

kumarsaroj18 avatar Sep 07 '22 14:09 kumarsaroj18

I got it solved by completely deleting .ohmyzsh folder and re-run the installation. I think the problem is that latest M1 MacOS by default ships zsh as shell but something not fully compatible with all plugins. Deleting everything and manually installing it with Homebrew did seem to fix the problem.

codeagencybe avatar Sep 08 '22 18:09 codeagencybe

Hi guys,

Same problem here but using homebrew on MacOS Monterey (12.6.1) on zsh (and starship prompt). Just ran the brew script but I can't find any info about any additional configuration if needed.

EDIT 22/02/2023: migrated to Ventura 13.2.1 and same issue

BigBoulard avatar Dec 20 '22 09:12 BigBoulard

Same issue here. Installed using brew on Intel Core i5 running macOS Monterey 12.6.3. history works fine, but completion does not work at all.

davisssamuel avatar Feb 09 '23 13:02 davisssamuel

I'm experiencing the same problem as @davisssamuel. Installed by cloning the repository on Intel Core i7, running macOS Ventura 13.2.1 on zhs with Starship prompt. I don't have Oh My Zsh installed.

Marcos-A avatar Feb 16 '23 08:02 Marcos-A

same i am on Fedora, history works but completion does not

emko avatar Feb 20 '23 05:02 emko

Same here, m1 mac

Yarden-zamir avatar Mar 19 '23 16:03 Yarden-zamir

Same issue here on Amazon Linux 2

WIIASD avatar Apr 08 '23 22:04 WIIASD

Please validate below points to fix zsh-autosuggestions

  1. Make sure you do not define plugins=() twice in ~/.zshrc file. Sometimes while installing Oh My Zsh and Powerlevel10k, plugins=(git) automatically gets added, and you end up getting added it twice.
  2. In ~/.zshrc file, plugins=(git) line should come before source $ZSH/oh-my-zsh.sh.

If you mess up with step 2, you will end up debugging for hours.

gnsalok avatar Aug 22 '23 13:08 gnsalok