edit(tmux): attach to sessions on start terminal

This commit is contained in:
thek4n 2024-04-10 19:00:33 +03:00
parent 334641d263
commit 9e6630e4af
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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