Skip to content

Commit

Permalink
feat: setup tmux script
Browse files Browse the repository at this point in the history
  • Loading branch information
KnownBlackHat committed Nov 25, 2024
1 parent b1d9746 commit 645c2a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ lavalink_server/logs
ip.txt
*.db
/logs
docker-compose-dev.yaml
12 changes: 12 additions & 0 deletions tmux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
SESSION="Mr-Robot"

tmux new-session -d -s $SESSION -n "compose"
tmux send-keys -t $SESSION:compose "sudo docker-compose -f ./docker-compose-dev.yaml up" C-m

tmux new-window -t $SESSION -n neovim
tmux send-keys -t $SESSION:frontend "nvim ." C-m

tmux select-window -t $SESSION:compose

tmux attach-session -t $SESSION

0 comments on commit 645c2a6

Please sign in to comment.