zulu-zsh / zulu

Total environment manager for ZSH
https://zulu.molovo.co
MIT License
151 stars 13 forks source link

Running zulu init script breaks autocompletion with zsh 5.7.1 and oh-my-zsh #111

Open andrea-zanetti opened 5 years ago

andrea-zanetti commented 5 years ago

Running the initialization script will prompt the following error message:

zulu init ✔ Switched to Zulu master _zulu_init_setup_completion:9: compinit: function definition file not found _zulu_init:61: promptinit: function definition file not found zsh: prompt: command not found...

then autocompletion fails with expand-or-complete-with-indicator:3: _main_complete: function definition file not found

nscotto commented 5 years ago

Same error for me using zulu without oh-my-zsh.

wickkidd commented 4 years ago

Same here (without oh-my-zsh) after upgrading my macbook to 10.15 (Catalina).

-edit-

For me the problem was that zulu had set my fpath when my mac had zsh 5.3 installed. One of the references was to a folder name based on that version. Catalina installed zsh version 5.7.1. I updated the folder name and everything worked again.

file: ~/.config/zulu/fpath

old value:

/Users/bkidd/.zsh/completion
/Users/bkidd/.zulu/share
/usr/local/share/zsh/site-functions
/usr/share/zsh/site-functions
/usr/share/zsh/5.3/functions

new value:

/Users/bkidd/.zsh/completion
/Users/bkidd/.zulu/share
/usr/local/share/zsh/site-functions
/usr/share/zsh/site-functions
/usr/share/zsh/5.7.1/functions