Shell integration displays unwanted directory listing on startup

Every time I open a new terminal in Cursor, I see this output:

drwx-----T@ 6 myuser  staff  192 May 30 12:21 /private/var/folders/93/.../T/myuser-cursor-zsh

Root Cause:
Line 8 in Cursor’s temporary shell integration file contains:

echo "$(ls -ld "$ZDOTDIR")"

This appears to be a debug/diagnostic line that was accidentally left in and should not be visible to users.

Location:

/private/var/folders/.../T/myuser-cursor-zsh/.zshrc:8

Environment:

Cursor Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:21:22.523Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: macOS 14.5.0 (Darwin arm64 24.5.0)

Expected: No diagnostic output visible to users
Actual: Directory listing appears on every new terminal

4 Likes

thank you for the find, I’ve gone into that file, comment the echo line and lock the file up, it seems to work for now

1 Like

I have the same concern. Also, I wonder if the tmp path is persistent.

Facing this issue too! Glad its not just me

Facing the same issue with 1.0 on macOS
For me going into the dir and commenting out the dbg statement in the .zshrc does not work because it get’s updated every time I open a new shell

Using zsh and I was getting the same thing. Restarted my Mac and now it no longer appears on new terminals.