Every time I start the terminal, I get “.zshrc:source:18: no such file or directory: /sourceme.sh”

bashterminalzsh

I've been trying to download some softwares. I've deleted those files, but now, I think my zsh file keeps wanting to source a file that's no longer there. Because of that, I get the following message every time I open up my terminal:

zshrc:source17

This is really annoying, and I'd like to get rid of it somehow… Thanks!

Best Answer

I was able to solve this issue with the following steps:

Open .zshrc and edit it. This can be done with the following:

sudo nano ~/.zshrc

From here, you may find a file, whatever it may be named (in this case, it was sourceme.sh). Delete the line that was installed in there. There are many reasons it's in there using nano. Then, save.

Where sourceme.sh came from: I downloaded another program that automatically wrote that line in when I configured it, and when I deleted, it could no longer find that file. It could be any other shell script (.sh).