fix test in tmux-sessionizer

This commit is contained in:
xesc 2025-04-19 23:31:43 +02:00
parent 59c107f4d4
commit 46b61d5185

View file

@ -59,9 +59,9 @@ fi
SEL_NAME=$(echo "$SEL_NAME" | tr "[:lower:]" "[:upper:]")
tmux new-session -d -s "$SEL_NAME" -c "$SEL_DIR"
if [ -e "$TMUX" ]; then
tmux switch-client -t "$SEL_NAME"
else
if [ -z "$TMUX" ]; then
tmux attach -t "$SEL_NAME"
else
tmux switch-client -t "$SEL_NAME"
fi