I'm trying to add a directory to my PATH environment so I can run some commands remotely. I have set this in my .bashrc, .tcshrc as well as in /etc/profile and /etc/csh.login but whenever I check my path remotely via SSH it is not in my path. When I log in, from the shell I have
>/usr/bin/env | grep PATH PATH=/usr/bin:/usr/local/bin:/path/I/just/added but remotely:
SSH hostname "/usr/bin/env| grep PATH" PATH=/usr/bin
I seem to remember something about a difference between login shells and interactive shells. Where do I set environment variables so they hold for all shells.