tmux concept changed

This commit is contained in:
Dirk Alders 2022-10-10 13:48:07 +02:00
parent 7fd8bc42a4
commit 571bbdfcbe
2 changed files with 7 additions and 4 deletions

View File

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

View File

@ -1,3 +1,9 @@
#!/bin/sh #!/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