asdf: Error when loading completions in zsh
complete:13: command not found: compdef
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 1
- Comments: 19 (6 by maintainers)
Commits related to this issue
- Merge pull request #97 from asdf-vm/tb/self-contained-completions feat(golang-rewrite): self-contained completion code — committed to asdf-vm/asdf by Stratus3D 2 years ago
I was having the same problem with oh-my-zsh and the issue was that I was sourcing first the asdf completion ant then the oh-my-zsh.sh file, just changing the order like this solved the problem for me
@alexlafroscia
@cLupus
I have the same problem. It only works if I source it manually in an active shell window.
Were you able to solve this?
I had the same problem a weeks ago. Moving autocompletion load code to
.zshrcsolved my issue.Hope it helps 😃
Add the following to ~/.zshrc
for config_file ($HOME/.asdf/asdf.sh) source $config_file