bin/tmux_ssh

14 行
223 B
Bash
実行ファイル

#!/bin/sh
#
SESSION=$(tmux ls -F "#{session_name}")
echo $NEW
if [ "$SESSION" = "" ]; then
tmux attach-session -t default_ssh || tmux new-session -s default_ssh
else
echo tmux-session \"$SESSION\" already running.
fi