From 936d41a0af416c516c6051cf5e5c7dca68ebcb14 Mon Sep 17 00:00:00 2001 From: Tharre Date: Wed, 30 Oct 2019 02:04:02 +0100 Subject: tmux: auto refresh environment on attach Automatically refresh the following environment variables in all zsh sessions inside tmux when we attach: SSH_CONNECTION SSH_CLIENT SSH_TTY SSH_AUTH_SOCK DISPLAY --- .tmux.conf | 1 + 1 file changed, 1 insertion(+) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 6764e69..43975a5 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -11,6 +11,7 @@ set-option -g history-limit 100000 set-option -g allow-rename on set-option -g set-titles on set-option -g set-titles-string "#W" +set-option -ga update-environment " SSH_CLIENT SSH_TTY" bind-key r source-file ~/.tmux.conf \; display "Config reloaded!" bind z run tmux-url-select -- cgit v1.2.3-70-g09d2