web.session.sh.tmpl 649 B

1234567891011121314
  1. # Create session with specified name if it does not already exist. If no
  2. # argument is given, session name will be based on layout file name.
  3. initialize_session "$TMUXIFIER_SESSION"
  4. # Create a new window inline within session layout definition.
  5. # new_window "misc"
  6. for number in $(seq 15 37 | grep -v 24); do
  7. new_window "$number"
  8. run_cmd "autossh -M0 -i ~/.ssh/id_rsa_majordomo_eng -F /dev/null -t eng@web$number.intr -- /bin/sh -c \"set +o history; sudo --stdin --validate --prompt='' <<< {{ pass "majordomo/private/ssh/eng" }}; exec -a sudo sudo -i\""
  9. done
  10. # Finalize session creation and switch/attach to it.
  11. finalize_and_go_to_session