From 9e6630e4afea9b35a0dc1eb61613276f9d8c3efe Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 10 Apr 2024 19:00:33 +0300 Subject: [PATCH] edit(tmux): attach to sessions on start terminal --- home/user/.bashrc | 4 ++-- home/user/.config/zsh/.zshrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/user/.bashrc b/home/user/.bashrc index 982c77c..7377e06 100644 --- a/home/user/.bashrc +++ b/home/user/.bashrc @@ -8,9 +8,9 @@ if \ command -v tmux &>/dev/null then if systemctl -q --user is-active tmux; then - exec tmux -N -L "$USER" new + exec tmux -N -L "$USER" new-session -A else - exec tmux + exec tmux new-session -A fi fi diff --git a/home/user/.config/zsh/.zshrc b/home/user/.config/zsh/.zshrc index e2ad7ba..dcc4471 100644 --- a/home/user/.config/zsh/.zshrc +++ b/home/user/.config/zsh/.zshrc @@ -8,9 +8,9 @@ if \ command -v tmux &>/dev/null then if systemctl -q --user is-active tmux; then - exec tmux -N -L "$USER" new + exec tmux -N -L "$USER" new-session -A else - exec tmux + exec tmux new-session -A fi fi