theniceboy/tmux/scripts/new_session.sh
2025-09-17 10:58:29 -07:00

11 lines
225 B
Bash
Executable file

#!/bin/bash
session_id=$(tmux new-session -d -P -F '#{session_id}' 2>/dev/null)
if [ -z "$session_id" ]; then
exit 0
fi
python3 "$HOME/.config/tmux/scripts/session_manager.py" ensure
tmux switch-client -t "$session_id"