You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Common case of using ai to help is to fix terminal command issues and dont have to copy error from command line (like this project https://github.com/shahnk19/gpt-comrade)
where if previous command fails command as "comrade fix" would right there in terminal suggest resolution. How difficult woudl be to add this?
The text was updated successfully, but these errors were encountered:
I was looking for a solution for this one.
When you run a node app in a terminal, the node app itself doesn't have access to the current terminal history, if you run "history" command using execa it will run it on a new terminal with no ( or different ) history .
Accessing .bash_history could be a solution, but it might be more complicated on non-Unix shells.
I think passing the command as an argument is a good approach. Something like ai fix "npm install react". Someone could simply define an alias to automatically pass the last command to ai fix "$0" if they prefer.
Common case of using ai to help is to fix terminal command issues and dont have to copy error from command line (like this project https://github.com/shahnk19/gpt-comrade)
where if previous command fails command as "comrade fix" would right there in terminal suggest resolution. How difficult woudl be to add this?
The text was updated successfully, but these errors were encountered: