"Command not found: complete" message appears every time I open the terminal

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.

3

2 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 complete actually installed? Try using apt show complete to see if it's installed. If it is, [installed] should be at the end of the line.

  • Is complete another 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like