Skip to content

Commit 8a51022

Browse files
committed
set PTY working directory to ~/devbox-todo
🐨 Generated with Crush Assisted-by: Claude Opus 4.6 via Crush <crush@charm.land>
1 parent a1daaa6 commit 8a51022

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/commands/intercept_exec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"net/http"
77
"os"
88
"os/exec"
9+
"path/filepath"
910
"strconv"
1011
"strings"
1112

@@ -43,8 +44,11 @@ func (s *interceptServer) handleExecWS(w http.ResponseWriter, r *http.Request) {
4344
rows = 24
4445
}
4546

47+
home, _ := os.UserHomeDir()
48+
4649
shell := getShell()
4750
cmd := exec.Command(shell)
51+
cmd.Dir = filepath.Join(home, "devbox-todo")
4852
cmd.Env = append(os.Environ(), "TERM=xterm-256color", "COLORTERM=truecolor")
4953

5054
ptmx, err := pty.StartWithSize(cmd, &pty.Winsize{

0 commit comments

Comments
 (0)