10 lines
171 B
Bash
Executable File
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
|
|
|
|
|