fixed something..

This commit is contained in:
pika 2025-06-22 14:28:20 +02:00
parent 9e1bb67ef2
commit 2e03cfe754

View file

@ -520,11 +520,15 @@ fi
# Tmux session manager # Tmux session manager
if command_exists tmux; then if command_exists tmux; then
if [ -z "$TMUX" ]; then sleep 0.01
if [ -n "$TMUX" ]; then
sleep 0.01
# Attach to existing session if any, otherwise create one named 'main' # Attach to existing session if any, otherwise create one named 'main'
if tmux ls &>/dev/null; then if tmux ls &>/dev/null; then
sleep 0.01
tmux attach-session tmux attach-session
else else
sleep 0.01
tmux new-session tmux new-session
fi fi
fi fi