Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate shell history? #2

Open
benwhalley opened this issue Sep 19, 2023 · 3 comments
Open

populate shell history? #2

benwhalley opened this issue Sep 19, 2023 · 3 comments
Assignees

Comments

@benwhalley
Copy link

This is really cool, but I can't use the up arrow to re-run a command. Is it possible to populate the terminal history to enable this, or just enter the command to be used to the terminal without running it so that actual execution happens normally rather than inside wz?

@searchableguy searchableguy self-assigned this Sep 19, 2023
@searchableguy
Copy link
Owner

searchableguy commented Sep 19, 2023

That's a good suggestion. I will need to check how that would work with child_process.

I was already thinking of feeding LLM the terminal history to chain commands via natural language better.

@searchableguy
Copy link
Owner

searchableguy commented Sep 19, 2023

@benwhalley So this is sort of possible but complex. The issue is adding to the user history will differ based on the shell user is using. I can add shell specific code to add history but I think we can only cover the major ones such as powershell, zsh, bash, etc.

@austinweisgrau
Copy link

Agree that this would be helpful! I'm using bash.

Find myself wanting to run the same command several times and the "up arrow, enter" muscle memory keeps getting me as I resend the same slow gpt network call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants