I was setting up my development environment on Ubuntu 20.04 following a video on Youtube and after running the command
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
Every time I open the terminal the message appears:
/home/gustavo/.asdf/completions/asdf.bash:80: command not found: complete
Does anyone know what I could have done wrong and how can I fix it?
Just to point out, I'm a beginner.
32 Answers
What that error means is that a command that you used in asdaf.bash is apparently no longer on your computer. To try and remedy the situation:
Is
completeactually installed? Try usingapt show completeto see if it's installed. If it is,[installed]should be at the end of the line.Is
completeanother script? If so, use this syntax (assuming complete is in your home directory)
~/./complete- Is the surrounding code correct? I've found a syntax error in the surrounding code sometimes makes a big difference in this command, especially if it involves piping or new lines.
Hope this helps,
Mac Henni
Thank you all for your help.
I used de apt show complete and looked for the COMPLETE command and it does not exist and is not installed.
But I found the file asdf.bash in /home/gustavo/.asdf/completions/asdf.bash and removed the offending statement. This made the message stop appearing.
1