zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
31.54k stars 1.87k forks source link

zsh autosuggest completion not working. #699

Closed drjkpalli closed 1 year ago

drjkpalli commented 2 years ago

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 ?

codeagencybe commented 2 years ago

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?

Ice1187 commented 2 years ago

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

kumarsaroj18 commented 2 years ago

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

codeagencybe commented 2 years ago

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.

BigBoulard commented 1 year ago

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

davisssamuel commented 1 year ago

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.

Marcos-A commented 1 year ago

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.

emko commented 1 year ago

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

Yarden-zamir commented 1 year ago

Same here, m1 mac

WIIASD commented 1 year ago

Same issue here on Amazon Linux 2

gnsalok commented 1 year ago

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.

FahimFBA commented 7 months ago

I followed the issue on macOS Sonoma like below:

  1. Ran this: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions to clone and save them in the zsh's plugin's directory.
  2. Opened the config using open ~/.zshrc
  3. Changed plugins=(git) to plugins=(git zsh-autosuggestions)
  4. Reloaded the config using source ~/.zshrc

It worked flawlessly!

mayank-allen commented 5 months ago

@FahimFBA can we connect?, I am doing the same thing but not working for me :(

FahimFBA commented 5 months ago

4. source ~/.zshrc

Sure! Give me an email.

mayank-allen commented 5 months ago

@FahimFBA Hey it was working, the issue was because of my theme I was not able to see suggestions

FahimFBA commented 5 months ago

@FahimFBA Hey it was working, the issue was because of my theme I was not able to see suggestions

That's great to hear!

sainttttt commented 5 months ago

Having the same problem on macOS ventura. tried installing through brew and direct git clone. Neither works. Any ideas on how to fix?