Created
March 8, 2024 15:52
-
-
Save harish2704/d6a7797025f70af36a91ab768cc5c906 to your computer and use it in GitHub Desktop.
Tmux-session
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 | |
export NODE_OPTIONS=--use-openssl-ca | |
tmux="tmux -L damp" | |
$tmux attach | |
if [ $? -ne 0 ]; then | |
$tmux new-session -d | |
$tmux send-keys 'cd ./backend/' Enter | |
$tmux send-keys 'npm run develop' Enter | |
$tmux new-window | |
$tmux send-keys 'cd ./frontend/ ' Enter | |
$tmux send-keys 'npm run dev' Enter | |
$tmux attach | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment