From f74838ab32c5dd12b534d1555a31128e7ed08e0c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 20 Aug 2016 02:17:29 +1200 Subject: Keep SSH_TTY updated in tmux panes --- tmux/tmux.conf.m4 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tmux') 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, -- cgit v1.2.3