14 lines
297 B
Bash
Executable file
14 lines
297 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source "${HOME}/bin/script_framework.sh"
|
|
|
|
[ -n "${TMUX}" ] && fail "You are already in tmux!"
|
|
(which tmux 2>/dev/null) || fail "No tmux found, can't continue"
|
|
|
|
tmux-agent
|
|
|
|
if ! ( tmux list-sessions | grep -q ^default ); then
|
|
tmuxp load -d default
|
|
fi
|
|
|
|
tmux attach-session -t default
|