Skip to content

Commit bdeb1ca

Browse files
authored
chore: added tmux script for dev env startup (#195)
1 parent 4ccb9a0 commit bdeb1ca

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tmux.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
export SESS=quack
3+
4+
pushd ./Writer/be
5+
6+
tmux ls | grep $SESS
7+
if [ $? -ne 0 ]
8+
then
9+
tmux new-session -d -s $SESS -n "shell"
10+
tmux send-keys -t $SESS:1.1 'npm run dev' C-m
11+
tmux split-window -h -t $SESS
12+
tmux send-keys -t $SESS:1.2 'deno task dev' C-m
13+
tmux split-window -h -t $SESS
14+
tmux send-keys -t $SESS:1.3 'cd app && npm run storybook' C-m
15+
fi
16+
tmux attach -t $SESS
17+
18+
popd

0 commit comments

Comments
 (0)