I using windows 10 but i setup bash as default instead of powershell.
ai is passing commands as incomplete, ommiting first letter, it happens randomly.
this is part of what chat showed to me:
Let me check the public directory:
ls -la public
bash: s: command not found
Macoha@DESKTOP-AQ3EO6A MINGW64 /d/git/schoole/edumanager/frontend (main)
$
Let me try that again:
ls -la public
$ ls -la public
total 15 ...
as you can see, sometimes ls
command is sometimes passed as s
Another example:
Let me view all files:
find . -type f -not -path "*/node_modules/*" -not -path "*/.next/*" | sort
$ ind . -type f -not -path "*/node_modules/*" -not -path "*/.next/*" | sort
bash: ind: command not found
So this is part of settings.json in user
C:\Users\Macoha\AppData\Roaming\Cursor\User\settings.json
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": ["--login"],
"icon": "terminal-bash",
"env": {
"CHERE_INVOKING": "1",
"MSYSTEM": "MINGW64"
}
}
},
Windows 10, 0.47.8
Cursor version 0.47.8
curently my workaround is add a general-rule.mdc
#### Solution: Command Buffer Pattern
Always use the following pattern when executing Git Bash commands:
bash
sleep 1 ; actual_command