How to make Cursor give priority to using PowerShell as the command tool

Because my computer runs on the Windows system, but I’ve noticed that when the cursor executes commands, it usually uses commands like bash first. Only after multiple failures will it use PowerShell. This makes me feel it’s a waste of time. How can I let the cursor know that it should give priority to using PowerShell?

1 Like

Mention it in cursor rule to request run command in windows style

I did, but it does not always works fine.

Yes, I have the same problem. I told Cursor globally that I am using Windows 11 and not to use bash but PowerShell. However, Cursor will not remember this rule.

@tangjun @typeve

Hey, want to figure out whats going on here!

Would it be possible to get some request IDs from you, where you don’t have privacy mode enabled?
You can do so by following this guide:

sorry, it is a failed chat, so I delete that conversation.
when the issue come out again, I’ll remember to provide you the request id.
:sob:

Hey did we, same issue here. Rules says, always default to windows but then it keep failing before trying powershell commands.

Hey, have you got an example of what is happening?

I do! It’s a real PITA! “cd ../server && npm run dev”
I to tried to make a rule to use only windows commandline commands but it insists on using Unix style..

I almost think this is by design since I have to waste more requests trying to make it work correctly. I downloaded the Windows version of Cursor, it should know I need Windows commands based on that alone! Seems this has been going on for quite some time based on my Google searches..