Created
July 2, 2018 21:53
-
-
Save ethagnawl/00c7e13c66ab9a5c20a27202a5df0752 to your computer and use it in GitHub Desktop.
test layout tmuxinator script
This file contains hidden or 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 | |
# Clear rbenv variables before starting tmux | |
unset RBENV_VERSION | |
unset RBENV_DIR | |
tmux start-server; | |
cd . | |
TMUX= tmux new-session -d -s test-layout -n email | |
tmux send-keys -t test-layout:0.0 echo\ zero C-m | |
tmux splitw -t test-layout:0 | |
tmux select-layout -t test-layout:0 tiled | |
tmux send-keys -t test-layout:0.1 echo\ one C-m | |
tmux splitw -t test-layout:0 | |
tmux select-layout -t test-layout:0 tiled | |
tmux send-keys -t test-layout:0.2 echo\ two C-m | |
tmux splitw -t test-layout:0 | |
tmux select-layout -t test-layout:0 tiled | |
tmux send-keys -t test-layout:0.3 echo\ three C-m | |
tmux splitw -t test-layout:0 | |
tmux select-layout -t test-layout:0 tiled | |
tmux send-keys -t test-layout:0.4 echo\ four C-m | |
tmux select-layout -t test-layout:0 tiled | |
tmux select-layout -t test-layout:0 3e70,272x81,0,0\{166x81,0,0,0,105x81,167,0\[105x20,167,0\{52x20,167,0,1,52x20,220,0,4\},105x29,167,21,3,105x30,167,51,2\]\} | |
tmux select-pane -t test-layout:0.0 | |
tmux select-window -t test-layout:0 | |
tmux select-pane -t test-layout:0.0 | |
if [ -z "$TMUX" ]; then | |
tmux -u attach-session -t test-layout | |
else | |
tmux -u switch-client -t test-layout | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment