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

9 lines
163 B
Bash
Executable file

#!/bin/bash
index="$1"
if [[ -z "$index" || ! "$index" =~ ^[0-9]+$ ]]; then
exit 0
fi
python3 "$HOME/.config/tmux/scripts/session_manager.py" switch "$index"