Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # this script to startup tmux in background on boot
- tmux new-session -d -s cs3753
- # this statement is a life-saver for tmux detached sessions
- tmux set-option -t cs3753 set-remain-on-exit on
- # send echo to pane one
- tmux send-keys "echo pane 1 ; cd ~" C-m
- # split into two panes
- tmux splitw -h
- tmux send-keys "echo pane 2; cd ~" C-m
- exit 0
Add Comment
Please, Sign In to add comment