Skip to content

Instantly share code, notes, and snippets.

@Mierenga
Last active April 17, 2018 14:54
Show Gist options
  • Save Mierenga/90ce3324db858c69990d79afe897a22f to your computer and use it in GitHub Desktop.
Save Mierenga/90ce3324db858c69990d79afe897a22f to your computer and use it in GitHub Desktop.
#!/bin/bash
############################## │
# session name │
sn=paddle
# starting directory
main_dir=~
##############################
# Start the session and window 0 in │
cd "$main_dir" │
tmux new-session -s "$sn" -n "$sn" -d │
## Open the log panes │
# Split pane 1 vertical │
tmux splitw -h -p 40 │
#tmux splitw -v -p 40 │
tmux send-keys "./tail-node.sh" C-m │
tmux splitw -v -p 40 │
tmux send-keys "./tail-node-err.sh" C-m │
tmux splitw -v -p 40 │
tmux send-keys "./tail-python.sh" C-m │
## open python htop │
#tmux selectp -t 1 │
#tmux splitw -h -p 40 │
#tmux send-keys "./status.sh" C-m │
#tmux send-keys F4 "python" C-m │
## open node htop │
#tmux splitw -v -p 50 │
#tmux send-keys "./status.sh" C-m │
#tmux send-keys F4 "node" C-m │
## open vim and helper console │
tmux selectp -t 0 │
tmux splitw -v -p 10 │
tmux selectp -t 0 │
tmux send-keys "vim" C-m │
tmux attach-session -t $sn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment