mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 22:54:59 +08:00
11 lines
225 B
Bash
Executable file
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"
|