diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 02:17:29 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 02:17:29 +1200 |
commit | f74838ab32c5dd12b534d1555a31128e7ed08e0c (patch) | |
tree | c488f72c326ca56c9c05155dcf745f2794ea8b87 /tmux | |
parent | Move oldpwd.sh functionality into profile (diff) | |
download | dotfiles-f74838ab32c5dd12b534d1555a31128e7ed08e0c.tar.gz dotfiles-f74838ab32c5dd12b534d1555a31128e7ed08e0c.zip |
Keep SSH_TTY updated in tmux panes
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/tmux.conf.m4 | 10 |
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, |