opensouls / terminal-copilot

A smart terminal assistant that helps you find the right command.
Apache License 2.0
573 stars 43 forks source link

Add in command history to prompt for different shells, like BASH #8

Open kafischer opened 1 year ago

kafischer commented 1 year ago

Adding bash history to the prompt would almost certain improve accuracy

ch3njust1n commented 1 year ago

A few examples where adding bash history would help:

Screenshot 2022-12-13 at 12 21 59 AM

Screenshot 2022-12-13 at 12 25 36 AM

But also chain of thought reasoning could also help.

2mawi2 commented 1 year ago

@kafischer @ch3njust1n , please check #20 . This should address the feature for (in its first iteration) the fish shell.

JoelKronander commented 1 year ago

Issue fixed for fish shell, someone could try to extend to other shells still!

JoelKronander commented 1 year ago

also added support for Mac OS zsh history using similar code to what @2mawi2 introduced.

2mawi2 commented 1 year ago

It appears to me that in the current implementation certain commands are missing in the history. I am currently checking whats the issue.

2mawi2 commented 1 year ago

@JoelKronander @kafischer , can be closed