bin/tmux_ssh

14 lines
223 B
Plaintext
Raw Normal View History

2021-12-25 12:23:51 +01:00
#!/bin/sh
#
2022-10-10 14:05:48 +02:00
SESSION=$(tmux ls -F "#{session_name}")
echo $NEW
2022-10-10 13:48:07 +02:00
if [ "$SESSION" = "" ]; then
tmux attach-session -t default_ssh || tmux new-session -s default_ssh
2022-10-10 14:05:48 +02:00
else
echo tmux-session \"$SESSION\" already running.
2022-10-10 13:48:07 +02:00
fi