Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- tmux new-session -d -s mySession -n myWindow
- tmux send-keys -t mySession:myWindow "cd /my/directory" Enter
- tmux send-keys -t mySession:myWindow "vim" Enter
- tmux attach -t mySession:myWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement