Created
April 19, 2016 00:04
-
-
Save gabemarshall/3cd9498ebac58e6fc4cfcc04be833411 to your computer and use it in GitHub Desktop.
Sample script to start a tmux session with a vertically split window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SESSION=$USER | |
tmux -2 new-session -d -s $SESSION | |
# Setup a window | |
tmux new-window -t $SESSION:1 -n 'The Internet' | |
# Split the window vertically | |
tmux split-window -v | |
tmux select-pane -t 0 | |
tmux send-keys "echo pane numero 1" C-m | |
tmux select-pane -t 1 | |
tmux send-keys "echo pane numero 2" C-m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment