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

ohmyszsh error /usr/share/goto/goto.sh:456: command not found: compdef #75

Closed
iNoSec2 opened this issue Aug 17, 2023 · 1 comment
Closed

Comments

@iNoSec2
Copy link

iNoSec2 commented Aug 17, 2023

I read this closed issue #33 but no luck with the

autoload bashcompinit
bashcompinit

I dont use redhat like it is written at the end of the closed issue, i use manjaro and ohmyzsh.
If it helps when i make some zsh completion i use compctl not compdef, here an example:

 _cmpl_cheat() {
 reply=($(cheat -l | cut -d' ' -f1))
 }
 compctl -K _cmpl_cheat cheat

it allows me to autocomplete the cheat command with all cheatsheet.

I will dig on my side :)

@iNoSec2
Copy link
Author

iNoSec2 commented Aug 17, 2023

Found a workaround by adding this to .zshrc file

autoload -Uz compinit
compinit

@iNoSec2 iNoSec2 closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant