A bin folder, holding helpfull scripts and commands
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tmux_ssh 223B

12345678910111213
  1. #!/bin/sh
  2. #
  3. SESSION=$(tmux ls -F "#{session_name}")
  4. echo $NEW
  5. if [ "$SESSION" = "" ]; then
  6. tmux attach-session -t default_ssh || tmux new-session -s default_ssh
  7. else
  8. echo tmux-session \"$SESSION\" already running.
  9. fi