Guest User

Untitled

a guest
Jun 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #!/bin/bash
  2. # this script to startup tmux in background on boot
  3.  
  4. tmux new-session -d -s cs3753
  5.  
  6. # this statement is a life-saver for tmux detached sessions
  7. tmux set-option -t cs3753 set-remain-on-exit on
  8.  
  9. # send echo to pane one
  10. tmux send-keys "echo pane 1 ; cd ~" C-m
  11.  
  12. # split into two panes
  13. tmux splitw -h
  14.  
  15. tmux send-keys "echo pane 2; cd ~" C-m
  16.  
  17. exit 0
Add Comment
Please, Sign In to add comment