X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=.bashrc;h=76cf30b21570be7a473800900bf0304f05900e8a;hb=b304880b97007d96ba9ff8775e3585398041ea7d;hp=f7af595af12ffc90f6cdd55acacfe51585f37510;hpb=eb01be8f06affc8c42b3835a96ddc9e78de0315d;p=distro-setup 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 ]] \