tmux concept changed

このコミットが含まれているのは:
Dirk Alders 2022-10-10 13:48:07 +02:00
コミット 571bbdfcbe
2個のファイルの変更7行の追加4行の削除

ファイルの表示

@ -1,3 +0,0 @@
#!/bin/sh
#
tmux attach-session -t local || tmux new-session -s local

ファイルの表示

@ -1,3 +1,9 @@
#!/bin/sh
#
tmux attach-session -t default_ssh || tmux new-session -s default_ssh
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