8 ms·
Is there a way to instantly, quickly prompt it in the terminal, without loading the full UI? Just to get a short response without filling the terminal page. li
by danavar 1y ago
Is there a way to instantly, quickly prompt it in the terminal, without loading the full UI? Just to get a short response without filling the terminal page.
like to just get a short response - for simple things like "what's a nm and grep command to find this symbol in these 3 folders". I use gemini alot for this type of thing already
Or would that have to be a custom prompt I write?
- peterldowns 1y agoI use `mods` for this https://github.com/charmbracelet/mods https://github.com/charmbracelet/mods other people use simon willison's `llm` tool https://github.com/simonw/llm https://github.com/simonw/llm Both allow you to switch between models, send short prompts from a CLI, optionally attach some context. I prefer mods because it's an easier install and I never need to worry about Python envs and other insanity.
- indigodaddy 1y agoDidn't know about mods, looks awesome.
- deleted 1y ago[deleted]
- cperry 1y ago-p is your friend
- 8n4vidtmkvmk 1y agoAnd if prompt is too long for -p due to shell arg limits, pipe into stdio instead
- hiAndrewQuinn 1y agogemini --prompt "Hello"
- irthomasthomas 1y agoIf you uv install llm Then grab my shelllm scripts github.com/irthomasthomas/shelllm and source them in your terminal then you can use premade prompt functions like shelp "what's a nm and grep command to find this symbol in these 3 folders" -m gemini-pro There's also wrappers that place the command directly in your terminal prompt if you run shelp-c
- Game_Ender 1y agoThe link you have posted 404’s and I could seem to find a command like that in your repos. Can you be more specific?
- irthomasthomas 1y agoSorry, the function is in here and it's called shelp https://github.com/irthomasthomas/shelllm.sh/blob/main/shelllm.sh https://github.com/irthomasthomas/shelllm.sh/blob/main/shell...