Skip to content

Instantly share code, notes, and snippets.

@harish2704
Created March 8, 2024 15:52
Show Gist options
  • Save harish2704/d6a7797025f70af36a91ab768cc5c906 to your computer and use it in GitHub Desktop.
Save harish2704/d6a7797025f70af36a91ab768cc5c906 to your computer and use it in GitHub Desktop.
Tmux-session
#!/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