Last active
October 5, 2023 06:29
-
-
Save rw3iss/7ed7d966c18d1cf65a48e69b63151f01 to your computer and use it in GitHub Desktop.
tmux.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tmux new-session -d | |
tmux split-window -h | |
tmux select-pane -t 0 | |
dir=$(PWD) | |
tmux send-keys -t 0 "cd client" Enter | |
tmux send-keys -t 0 "npm run dev" Enter | |
tmux send-keys -t 1 "cd server" Enter | |
tmux send-keys -t 1 "npm run dev" Enter | |
tmux resize-pane -L 5 | |
tmux -2 attach-session -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment