Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

LLM.sh πŸ€– πŸ’»

Copilot for your command line. Just type llm XYZ and it will generate/run a script for you that does XYZ.

Installation

Install bat (https://github.com/sharkdp/bat#installation), a better cat alternative

~$: port install bat # or brew install bat - 

Install LLM.sh via pip

~$: pip install --upgrade git+https://github.com/jayhack/llm.sh

Usage

Note that you should expect 10-20s latency for each command.

Type llm [command], like so:

~$: llm rename all files in this directory from snake case to camelcase

You will receive an output like this:

───────┬─────────────────────────────────────────────────────────────────────────────────────
 β”‚ File: temp.sh
───────┼─────────────────────────────────────────────────────────────────────────────────────
 1 β”‚ #!/bin/bash
 2 β”‚
 3 β”‚ # rename all files in this directory from snake case to camelcase
 4 β”‚ for file in *; do
 5 β”‚ mv "$file" "$(echo $file | sed -r 's/(_)([a-z])/\U2円/g')"
 6 β”‚ done
───────┴─────────────────────────────────────────────────────────────────────────────────────
>> Do you want to run this program? [Y/n]

Hit Y (or enter) to run the script. That's it!

About

GPT-3 on your command line

Resources

Stars

130 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /