fix attaching tmux-session

This commit is contained in:
Tim Gröger 2023-05-11 23:04:11 +02:00
parent 9243048cf1
commit f4c1655fa3
1 changed files with 2 additions and 2 deletions

4
.zshrc
View File

@ -143,7 +143,7 @@ if [ $? != 0 ]; then
TMUX='' tmux new-session -s "default" -d
fi
if [[ -z "$TMUX" ]]; then
tmux attach-session -t "default"
tmux attach -t default
else
tmux switch-client -t "default"
tmux switch-client -t default
fi