# Adding ' -l"" arg to all my terminals when running commands in chat window

**URL:** <https://forum.cursor.com/t/adding-l-arg-to-all-my-terminals-when-running-commands-in-chat-window/76454>\
**Category:** Bug Reports\
**Created:** [April 8, 2025, 6:07am UTC](https://forum.cursor.com/t/adding-l-arg-to-all-my-terminals-when-running-commands-in-chat-window/76454 "2025-04-08T06:07:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qlinc](https://avatars.discourse-cdn.com/v4/letter/q/b9e5f3/32.png) [@qlinc](https://forum.cursor.com/u/qlinc)\
**Post date:** [April 8, 2025, 6:07am UTC](https://forum.cursor.com/t/adding-l-arg-to-all-my-terminals-when-running-commands-in-chat-window/76454/1 "2025-04-08T06:07:58Z")

</div>

🐞 Provide a **clear description** of the bug  
I get this error as soon as it finishes generating a cmd in the chat.

The terminal process “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ‘-l’” terminated with exit code: 1.

i went through the setting.json and a bunch of different terminal.integrated vscode settings and couldn’t find anything adding that. i can open default terminals just fine, it doesn’t add that. but if i set my default to powershell, gitbash, wsl, whatever, it tries to add the -l

💻 Tell us your operating system and your **Cursor version** (e.g., `Windows, 0.x.x`).  
w10 22h2 19045.5608  
48.7  
🚫 Tell us if the issue stops you from using Cursor.  
Yeah, it stops me from using it. I chat can’t run any commands.

---

<div class="post-metadata">

**Author:** ![qlinc](https://avatars.discourse-cdn.com/v4/letter/q/b9e5f3/32.png) [@qlinc](https://forum.cursor.com/u/qlinc)\
**Post date:** [April 9, 2025, 5:34pm UTC](https://forum.cursor.com/t/adding-l-arg-to-all-my-terminals-when-running-commands-in-chat-window/76454/2 "2025-04-09T17:34:35Z")

</div>

I think it might be the AI actually throwing the arg in there. I made a rule and tried a bunch of different wordings but it keeps doing it though. Any ideas? It started happening on my separate machine/env just now too.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 9, 2025, 5:34pm UTC](https://forum.cursor.com/t/adding-l-arg-to-all-my-terminals-when-running-commands-in-chat-window/76454/3 "2025-05-09T17:34:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
