Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created November 27, 2013 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexyoung/7676231 to your computer and use it in GitHub Desktop.
Save alexyoung/7676231 to your computer and use it in GitHub Desktop.
Tmux Train
#!/bin/bash
SESSION=tlol
tmux set -g default-shell /bin/bash
tmux set -g default-command /bin/bash
tmux new-session -d -s $SESSION
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -h
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -v
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -h
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -v
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -h
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -v
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -h
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux split-window -v
tmux send-keys "/usr/local/bin/sl" C-m C-d
tmux attach -t $SESSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment