Skip to content

Instantly share code, notes, and snippets.

@rw3iss
Last active October 5, 2023 06:29
Show Gist options
  • Save rw3iss/7ed7d966c18d1cf65a48e69b63151f01 to your computer and use it in GitHub Desktop.
Save rw3iss/7ed7d966c18d1cf65a48e69b63151f01 to your computer and use it in GitHub Desktop.
tmux.sh
#!/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