Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created November 27, 2013 14:06
Show Gist options
  • 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