bin/tmux_ssh
2022-10-10 13:48:07 +02:00

10 lines
171 B
Bash
Executable File

#!/bin/sh
#
SESSION=$(tmux display-message -p '#S' 2> /dev/null)
if [ "$SESSION" = "" ]; then
tmux attach-session -t default_ssh || tmux new-session -s default_ssh
fi