pimterry / notes

:pencil: Simple delightful note taking, with more unix and less lock-in.
https://github.com/pimterry/notes
MIT License
1.24k stars 82 forks source link

Zsh autocompletion not working on Mac #74

Open xguardi opened 4 years ago

xguardi commented 4 years ago

Issue Summary

Installing the autocompletion (following instructions) script at: /usr/local/share/zsh/site-functions And checking the permissions are all ok, autocompletion does not work

Steps to Reproduce

  1. Install notes on a Mac: curl -L https://rawgit.com/pimterry/notes/latest-release/install.sh | zsh

  2. Install autocompletion script curl -L https://rawgit.com/pimterry/notes/latest-release/_notes > /usr/local/share/zsh/site-functions/_notes

  3. Set $NOTES_DIRECTORY on .zshrc

  4. Relaunch shell notes autocompletion does not work. Other zsh completion scripts for other commands do work

thanks! :-D

xguardi commented 4 years ago

OK, running:

$ compinit

On the shell makes it work.

Apparently OMZ does not pick those non-OMZ auto-completion scripts correctly: https://github.com/zsh-users/zsh-completions/issues/277

And need to run it explicitly on your .zshrc again.

pimterry commented 4 years ago

Ok, thanks for letting me know. It sounds like this is just a OMZ config issue? If there's something that should be included in the docs to make this clearer though, I'd happily accept a PR :smiley:.