Thomas Landgraf
Thomas Landgraf
... I want to share an observation. It seems that the command executed by claude code is executed in my home directory instead of the project root (from where i...
> In my case this appears to be because claude code starts bash with my user profile, (`.profile`) which has a `cd /to/my/dir` in it. I worked around this by...
``` > execute the pwd command with bash ⏺ I'll execute the pwd command to show the current working directory. ⏺ Bash(pwd) ⎿ /Users/tl ⎿ Shell cwd was reset to...
``` grep cd .*rc .zshrc:# Make `cd` from a vscode terminal go to the workspace root .zshrc: alias cd="HOME=\"${VSCODE_WS}\" cd" ``` which comes from ``` if [[ -v VSCODE_WS ]]...
maybe this helps: ```bash which cd cd: aliased to HOME="/Users/tl/work/MYPROJECT" cd ``` then in claude cli: ```claude > run "which cd" as a bash command ⏺ I'll run the which...
... yeah, in .zlogin, i had a `cd` - thanks a lot
I agree, this would be a huge QoL feature