Skip to content

Instantly share code, notes, and snippets.

@angelo-v
Created March 3, 2026 17:15
Show Gist options
  • Select an option

  • Save angelo-v/8d418ec92821d48dff8315f186a639ed to your computer and use it in GitHub Desktop.

Select an option

Save angelo-v/8d418ec92821d48dff8315f186a639ed to your computer and use it in GitHub Desktop.
Shell alias that uses local llm to find a shell command for a given task
alias helpme='f() { printf "%s\n" "$*" | ollama run qwen2.5-coder "output as shell command with a one-line description"; }; f'
@angelo-v
Copy link
Author

angelo-v commented Mar 3, 2026

Usage:

$ helpme find all files bigger than 5mb and older than 3 days

```sh
find /path/to/search -type f -size +5M -mtime +3
```

This command will search for all files (`-type f`) larger than 5 MB (`-size +5M`) and older than 3 days (`-mtime +3`) in the specified directory `/path/to/search`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment