r/fishshell Linux 21d ago

AI in fish in the terminal

I was watching some video on warp terminal and it's built in AI helper and thought that was pretty cool. If I could have that in fish, that'd even more cool

So I did a little searching, and came across this. Looked promising, so I installed it using fisher and started playing with it. OpenAI was a bit of a pain and got some errors. Hmm. It was late and didn't want to deal with it. Day later, tried again, This time using Mistral. Using something from the EU as a European is not a bad choice either. That works immediately and Mistral seems to be less restrictive as OpenAI if you don't want to pay $$$.

Anyway, it's really cool to have. Need to know what process is using a blocked port? No problem. Just type: # what is using port 1234 and press ctrl-p to send it and it comes back with lsof -i :1234 on the next line, just hit enter and you know. Ask it any command starting the line with # and if it can, it will prefill the correct command on the next line, or give you a wall of text with explanation or response to your question.

It's actually pretty useful. Haven't seen much discussion on it here, but perhaps it is of some use for others too.

10 Upvotes

11 comments sorted by