Skip to content

Instantly share code, notes, and snippets.

@jonathanschilling
Created July 28, 2024 12:58
Show Gist options
  • Save jonathanschilling/f4a5999dacbf87df030c96b7928b09bb to your computer and use it in GitHub Desktop.
Save jonathanschilling/f4a5999dacbf87df030c96b7928b09bb to your computer and use it in GitHub Desktop.
tmux

tmux

  1. find existing sessions: tmux ls
  2. attach to existing session: tmux attach -d -t 0
  3. detach from tmux session: Ctrl^b-d

make 9 windows

tmux new-session     'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-1 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55051' \; \
     split-window -h 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-4 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55054' \; \
     split-window -h 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-7 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55057' \; \
     select-pane -t 0 \; \
     split-window -v 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-2 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55052' \; \
     split-window -v 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-3 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55053' \; \
     select-pane -t 3 \; \
     split-window -v 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-5 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55055' \; \
     split-window -v 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-6 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55056' \; \
     select-pane -t 6 \; \
     split-window -v 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-8 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55058' \; \
     split-window -v 'VMEC_SETTINGS_FILE=/home/jonathan/vmec-settings-9 java -jar minerva.fusion.apps.w7x.equi3d-1.1.0.jar --host=localhost --port=55059' \; \
     select-layout tiled \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment