From b304880b97007d96ba9ff8775e3585398041ea7d Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 13 May 2014 15:45:12 -0700 Subject: [PATCH] small doc note --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index f7af595..76cf30b 100644 --- a/.bashrc +++ b/.bashrc @@ -14,8 +14,10 @@ # So we need something else. Command lines and env variables sent across ssh are strictly limited. # We could override an obscure unused LC_var, like telephone, or we could transfer a file. # But I choose to set SendEnv and AcceptEnv ssh vars for BASH_LOGIN_SHELL. +# In a private file, i have aliases for if $- == *i*, ssh -t, else ssh. [[ $- != *i* && ! $SSH_CONNECTION ]] && export BASH_LOGIN_SHELL=true + if [[ $SSH_CONNECTION ]] \ && [[ $- == *c* ]] \ && [[ ! $SSH_TTY ]] \ -- 2.30.2