Coder Social home page Coder Social logo

Comments (4)

jeanlucthumm avatar jeanlucthumm commented on June 12, 2024 1

@TheR1D are you already working on this? If not I'd like to take a look since I run into this all the time

from shell_gpt.

pcuci avatar pcuci commented on June 12, 2024

What if the response comes from whatever the previous command's stdout/stderr output the shell received?

A lot of the times, I get an error I've never seen before, and being lazy to read it, I feed it to ChatGPT to read it for me. This saves a lot of time, for instance, when some unformatted json gets thrown at you. (AI models these days have better reading comprehension than humans, so why not use them this way?)

If the error code of the previous shell command is non-zero, why not pick up the buffer shell and feed it to shell-gpt by default :-)

Say you're using byobu, we could see the "next recommended command" somewhere in the status bar, and have a key-binding to run it

Or simply update PS1 for a quick hack?

Or, in zhs, shell-gpt can auto-suggest complete the command for users to just press enter and execute :-)
The fzf/bash equivalent could achieve the same under a Ctrl+R-like key-binding showing you more than 1 recommended next command to choose from

from shell_gpt.

moritz-t-w avatar moritz-t-w commented on June 12, 2024

#32

from shell_gpt.

TheR1D avatar TheR1D commented on June 12, 2024

@jeanlucthumm sure, I'm not currently working on it, feel free to take a look.

from shell_gpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.