From d8e6a6ac08c546be4a60b8fd1f080f743c25f890 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 16 Feb 2024 13:52:52 +0300 Subject: [PATCH] fix ssh tmux --- home/user/.config/zsh/.zprofile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/user/.config/zsh/.zprofile b/home/user/.config/zsh/.zprofile index e020aab..562bb0d 100644 --- a/home/user/.config/zsh/.zprofile +++ b/home/user/.config/zsh/.zprofile @@ -11,5 +11,6 @@ elif command -v tmux &>/dev/null && [[ $(tty) = "/dev/tty2" ]] && [[ ! "$TERM" = fi if [[ -n "$SSH_CLIENT" ]] && [[ ! "$TERM" =~ tmux ]] && [[ -z "$TMUX" ]]; then + export SSH_CLIENT # for prompt exec tmux new-session -s ssh -A -fi +fi \ No newline at end of file