aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf.m4
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-20 02:17:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-20 02:17:29 +1200
commitf74838ab32c5dd12b534d1555a31128e7ed08e0c (patch)
treec488f72c326ca56c9c05155dcf745f2794ea8b87 /tmux/tmux.conf.m4
parent90c21a27bb648a3c592cc7d2ea18a944177c8f83 (diff)
downloaddotfiles-f74838ab32c5dd12b534d1555a31128e7ed08e0c.tar.gz
dotfiles-f74838ab32c5dd12b534d1555a31128e7ed08e0c.zip
Keep SSH_TTY updated in tmux panes
Diffstat (limited to 'tmux/tmux.conf.m4')
-rw-r--r--tmux/tmux.conf.m410
1 files changed, 4 insertions, 6 deletions
diff --git a/tmux/tmux.conf.m4 b/tmux/tmux.conf.m4
index ac19ebe3..f7fc1e8e 100644
--- a/tmux/tmux.conf.m4
+++ b/tmux/tmux.conf.m4
@@ -6,13 +6,11 @@ set-environment -gru DISPLAY
# Force the browser to be Lynx in case we inherited a non-null DISPLAY
set-environment -g BROWSER 'lynx'
-# The only environment variables I want tmux to update for me are SSH_CLIENT
-# and SSH_CONNECTION, both of which are occasionally useful
-set-option -g update-environment 'SSH_CLIENT SSH_CONNECTION'
+# The only environment variables I want tmux to update for me are SSH_CLIENT,
+# SSH_CONNECTION, and SSH_TTY, all of which are occasionally useful
+set-option -g update-environment 'SSH_CLIENT SSH_CONNECTION SSH_TTY'
-# Setting this prevents each new pane being a login shell, purely for
-# efficiency reasons; I've not yet encountered a situation where I need tmux to
-# create login shells
+# Setting this makes each new pane a non-login shell, which suits me better
set-option -g default-command "$SHELL"
# All of my terminals are 256 colors, so use the appropriate termcap/terminfo,