Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion Not working #705

Open
ghost opened this issue Oct 8, 2022 · 3 comments
Open

Autocompletion Not working #705

ghost opened this issue Oct 8, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 8, 2022

system: Kali linux 2022.3
shell: zsh ( i use oh-my-zsh Manage zsh)

curl https://raw.githubusercontent.com/cheat/cheat/master/scripts/cheat.zsh --output cheat.zsh
and
edit .zshrc
add source /home/username/.oh-my-zsh/custom/plugins/cheat/cheat.zsh
source ~/.zshrc
end

when i open new shell again
error message:
/home/username/.oh-my-zsh/custom/plugins/cheat/cheat.zsh:65: command not found: compdef

@ghost ghost added the bug label Oct 8, 2022
@ghost
Copy link
Author

ghost commented Oct 8, 2022

If there is something wrong with my operation process, I hope you guys can point it out.
thanks.

@astrorigin
Copy link

To load the missing command, you need this in your .zshrc:

autoload -Uz compinit
compinit -u

@ghost
Copy link
Author

ghost commented Oct 19, 2022

@astrorigin
Thanks for your reply, I tried adding these 2 lines to.zshrc

autoload -Uz compinit
compinit -u

Unfortunately, the problem still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants