so recently I noticed that every time I open a new terminal window, the terminal would display this message first
-bash: source: -/: invalid option
source: usage: source filename [arguments]
I use macbook with MacOS Sierra. I don't know if this relates to the problem or not, but I recently edited ssh config file for a class.
This almost certainly means that you created a syntax error in the file you edited.
The output here is telling you that
sourceis invoked incorrectly. It looks like you have-/instead of a proper option (are you missing the rest of a filepath or did you forget to use quotes or otherwise deal with spaces in your filepath?).In any case something is mangled in your usage of
source. You could run this in your home dir:To see which files are using
sourcein your home directory (note, depending on what you've edited, the problem could be elsewhere). Notably, there are files in/etc// which would traditionally be using thesourcecommand.Hope this helps.