On 2015-05-20 16:14 , Carl Hoefs wrote:
I could check for the existence of the $TERM_PROGRAM or $SSH_CLIENT env vars, but I’m thinking there must be a better way to do this?
consensus on stackexchange is to test the env vars <http://unix.stackexchange.com/questions/9605/how-can-i-detect-if-the-shell-is-controlled-from-ssh> also note the $(who am i) solution _______________________________________________ MacOSX-talk mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-talk
