iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
eb01be8
)
small doc note
author
Ian Kelling
<ian@iankelling.org>
Tue, 13 May 2014 22:45:12 +0000
(15:45 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 4 May 2017 23:40:14 +0000
(16:40 -0700)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index f7af595af12ffc90f6cdd55acacfe51585f37510..76cf30b21570be7a473800900bf0304f05900e8a 100644
(file)
--- 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.
# 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
[[ $- != *i* && ! $SSH_CONNECTION ]] && export BASH_LOGIN_SHELL=true
+
if [[ $SSH_CONNECTION ]] \
&& [[ $- == *c* ]] \
&& [[ ! $SSH_TTY ]] \
if [[ $SSH_CONNECTION ]] \
&& [[ $- == *c* ]] \
&& [[ ! $SSH_TTY ]] \