bin/tmux_ssh

10 lines
171 B
Plaintext
Raw Normal View History

2021-12-25 12:23:51 +01:00
#!/bin/sh
#
2022-10-10 13:48:07 +02:00
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