OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
50.58k stars 4.41k forks source link

Added batch, bat aliases for shell language #1242

Closed CyanideByte closed 1 month ago

CyanideByte commented 2 months ago

Describe the changes you have made:

Reference any relevant issues (e.g. "Fixes #000"):

Pre-Submission Checklist (optional but appreciated):

OS Tests (optional but appreciated):

CyanideByte commented 2 months ago

Should be under powershell.py ?

Batch and bat is for windows

Batch scripts have always been running under shell through jupyter even without the aliases. This is just to catch a few cases where models specifically mention batch or bat. I think powershell is differentiated because its running in a separate process. Jupyter might be able to run powershell as well I'm not sure, but also powershell can't run batch scripts directly.

KillianLucas commented 1 month ago

Great work as always @CyanideByte and many thanks @Notnaton for reviewing! Merged.