12 lines
216 B
Bash
Executable file
12 lines
216 B
Bash
Executable file
#!/bin/bash
|
|
|
|
[ -n "${TMUX}" ] && exit 1
|
|
|
|
tmux-agent
|
|
|
|
if ! ( tmux list-sessions ); then
|
|
tmux new-session -d
|
|
tmux split-window -h
|
|
fi
|
|
|
|
tmux attach-session -t $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1)
|