I've got a server running Ubuntu 18.04, and whenever I login through SSH I receive this at the end of my MOTD:
Command 'syncthing' is available in '/snap/bin/syncthing'
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
syncthing: command not found
I do have Syncthing set up on the server (installed through snap), but I run it using a script that launches it in a screen session (I run this script manually, as far as I know it should not run automatically). Is there anywhere I can check to see why it might be trying to run? I've checked .bashrc but there isn't any entries in there. Any help is appreciated.
Edit:
Running the first suggestion from Terdon's comment printed nothing, and the second command printed the following:
etc/profile.d/01-locale-fix.sh:syncthing
I opened that file, sure enough there was a line with just syncthing. I commented out that line, logged out and back in and the issue was gone.