3 ms·
Find and execute shell commands using Ollama
- regnull 2y agoIf you are like me and constantly forget useful shell commands, this is for you. Here's an example: $ ./how.sh find and delete files older than 30 days Generated command: find . -type f -mtime +30 -exec rm {} \; Do you want to execute this command? (y/n):
- codingdave 2y agoI run ollama as my model for continue.dev in VS Code. It works fine, but it often will suggest one block of code, then write a completely different block into my files. I have no idea if the difference comes from ollama or continue, but... I cannot trust that it will do what it said it would. So there is no flippin' way I'd trust an AI to run commands on my system, regardless of what it told me it intended to run.
- regnull 2y agoI updated the script to use llm cli instead, so it supports any local model (including ollama) or online models, so choose your poison.