Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/bin/bash
  2. tmux new-session -d -s mySession -n myWindow
  3. tmux send-keys -t mySession:myWindow "cd /my/directory" Enter
  4. tmux send-keys -t mySession:myWindow "vim" Enter
  5. tmux attach -t mySession:myWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement