fixed tmux again

This commit is contained in:
pika 2025-06-22 20:56:27 +02:00
parent 2e03cfe754
commit 706f690a8e

View file

@ -15,6 +15,7 @@ alias please="sudo"
# ─< easier dir up >────────────────────────────────────────────────────────────────────────
alias ..="cd .."
alias ...="cd ../.."
# ─< colored ip >───────────────────────────────────────────────────────────────────
alias ip="ip --color=always"
@ -521,7 +522,7 @@ fi
# Tmux session manager
if command_exists tmux; then
sleep 0.01
if [ -n "$TMUX" ]; then
if [ -z "$TMUX" ]; then
sleep 0.01
# Attach to existing session if any, otherwise create one named 'main'
if tmux ls &>/dev/null; then