From 87904359eac047a5413f1c1d66776ee326930c9b Mon Sep 17 00:00:00 2001 From: thek4n Date: Tue, 16 Apr 2024 14:27:02 +0300 Subject: [PATCH] fix(tmux): inherit env variables from client --- home/user/.config/tmux/options.conf | 5 ++++- home/user/.config/tmux/style.conf | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/home/user/.config/tmux/options.conf b/home/user/.config/tmux/options.conf index 1d7af17..8630ff6 100644 --- a/home/user/.config/tmux/options.conf +++ b/home/user/.config/tmux/options.conf @@ -22,4 +22,7 @@ set -g lock-command vlock # Shell command to lock client set -g default-terminal "xterm-256color" set -ga terminal-overrides ",xterm-256color:Tc" -set -g default-command 'tmux rename-window -t 1 1; $SHELL' \ No newline at end of file +set -g default-command 'tmux rename-window -t 1 1; $SHELL' + +set -ga update-environment 'DISPLAY' +set -ga update-environment 'SSH_CLIENT' \ No newline at end of file diff --git a/home/user/.config/tmux/style.conf b/home/user/.config/tmux/style.conf index 1ead3c1..7b09a2d 100644 --- a/home/user/.config/tmux/style.conf +++ b/home/user/.config/tmux/style.conf @@ -4,7 +4,6 @@ # misc set -g bell-action none set -g message-style 'fg=black bg=white bold' -set -ga update-environment 'DISPLAY' # Maybe fix DISPLAY? # status style