Skip to content

avafloww/llm.fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

llm.fish

Translate natural language to shell commands using Claude.

Simplicity is the point. One file, no dependencies beyond Claude Code, no configuration files, no package managers. Just copy and go.

If you want something fancier, there are other tools for that.

Installation

curl -sL https://raw.githubusercontent.com/avafloww/llm.fish/refs/heads/main/llm.fish -o ~/.config/fish/functions/llm.fish

Requires Claude Code CLI.

Usage

llm list all docker containers
llm find large files in this directory
llm --yolo show disk usage

Options

  • --model <model> — Use sonnet, opus, or haiku
  • --yolo — Execute immediately, no confirmation
  • --no-yolo — Just print the command
  • --fix — Offer to fix failed commands (default: on)
  • --no-fix — Don't offer to fix failed commands
  • --verbose, -v — Show model and execution time
  • --set-default <key> <value> — Persist settings (model, yolo, fix)
  • --help — Show help

Modes

Interactive (default): Shows the command with a menu to execute, cancel, or refine.

Non-interactive: When piped, outputs the raw command only.

Yolo: --yolo runs the command immediately without asking.

Defaults

llm --set-default model sonnet  # default
llm --set-default yolo off      # default
llm --set-default fix on        # default

Stored as Fish universal variables.

License

WTFPL

About

Translate natural language to shell commands using Claude Code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages