fix: setup working dir properly

This commit is contained in:
Raj Sharma 2024-01-17 21:23:03 +05:30
parent b3bf15bc29
commit c2bf3fb9cb
2 changed files with 2 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -26,7 +26,8 @@ func CreateTmuxSession(config *projectconfig.Configuration) error {
log.Debug("Ran command", "command", switchSessionCmd.String()) log.Debug("Ran command", "command", switchSessionCmd.String())
} else { } else {
// If it doesn't exist, create the session // 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 { if err := createSessionCmd.Run(); err != nil {
return err return err
} }