From: Ian Kelling Date: Tue, 13 May 2014 22:45:12 +0000 (-0700) Subject: small doc note X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=b304880b97007d96ba9ff8775e3585398041ea7d small doc note --- 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 ]] \