From 645c2a694b934857de6a833578683bdc213f049b Mon Sep 17 00:00:00 2001 From: KnownBlackHat Date: Mon, 25 Nov 2024 09:22:48 +0530 Subject: [PATCH] feat: setup tmux script --- .gitignore | 1 + tmux.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 tmux.sh diff --git a/.gitignore b/.gitignore index 67d300d..dc74d51 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ lavalink_server/logs ip.txt *.db /logs +docker-compose-dev.yaml diff --git a/tmux.sh b/tmux.sh new file mode 100755 index 0000000..78fd6d8 --- /dev/null +++ b/tmux.sh @@ -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