Here is a small project I made to include chatGPT directly into your terminal with context on previous command ran.
#GPT-Terminal
1 messages · Page 1 of 1 (latest)
This is interesting, will it pick up any error output in my console and be able to help me with the error, I often copy and paste the error into gpt4 manually, but it would be nice to type "What's causing this error?" from the console
This is great! I've seen other implementations like open interpreter but the fact that this logs your command history is a huge benefit above others
yes exactly, but this is very hacky haha . If there is a better way, I am open to PRs ! 🙂
wow, nice!
I've been using ShellGPT but been looking for something that integrates more
Does it work on Windows too?
IOW, does it know which shell it's running in etc.?
Probably not working on Windows.
the bash profile set an env variable with the path to the log file and create a new one for each session. and the script reuse that same env variable so each session is linked specifically to a unique file that the terminal and chatGPT both look at.
What about WSL?
I dont know anything about the windows ecosystem, sorry
I use different shells on windows, cmd.exe, powershell, sh.exe (from Git for Windows). Does it work in the latter?
i have no idea, if it runs bash, it might work with a few work around. it just need python, script , and environment variables so if you have those, it might work
which script?
its the name of the command i use to save the content of the terminal to a file
ah