From c2bf3fb9cbaa9835f9c15da3b410d4f4e9b88dc6 Mon Sep 17 00:00:00 2001 From: Raj Sharma Date: Wed, 17 Jan 2024 21:23:03 +0530 Subject: [PATCH] fix: setup working dir properly --- .DS_Store | Bin 0 -> 8196 bytes controller/tmux.go | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3a55af8a2c0b49b4e93ad2239fa2476afcb112c1 GIT binary patch literal 8196 zcmeHMJ#Q016r42%*-*q3NGVcW8;P%gM14d?NM?i72+g=sqANB2h+$kg{fW;@J?0KwIgCGi z7~k3W6N<6jdH=+w!=w&%Rs~dnq5^Vuui`Gc*up3}zne`yADG1YS+m*dWi9$@AK#zs zJsW>{9LGE7#s{y0X9M*OmZHwS8Cuw3?+(WcY)1@m^ILgV$mMLX_H#V6TuScO&nB$S z&y4uN^1FsM`E6s9+`2Kd#wnRa@sQJ_d&@t*zpC+%0sj5xABMb6 Ym?|}?$J`-3G<^_YWzb0#_^S&10(30-d;kCd literal 0 HcmV?d00001 diff --git a/controller/tmux.go b/controller/tmux.go index cc2b8f0..8057f9e 100644 --- a/controller/tmux.go +++ b/controller/tmux.go @@ -26,7 +26,8 @@ func CreateTmuxSession(config *projectconfig.Configuration) error { log.Debug("Ran command", "command", switchSessionCmd.String()) } else { // If it doesn't exist, create the session - createSessionCmd := exec.Command("tmux", "new-session", "-d", "-s", sessionName) + createSessionCmd := exec.Command("tmux", "new-session", "-d", "-s", sessionName, "-c", config.WorkingDir) + // createSessionCmd := exec.Command("tmux", "new-session", "-d", "-s", sessionName) if err := createSessionCmd.Run(); err != nil { return err }