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

feat: Add option to save commands to bash history #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbailey
Copy link

@mbailey mbailey commented Nov 19, 2024

Append command to $HISTFILE if all of the following conditions are met:

  • HISTFILE env var is set
  • Either LLM_CMD_SAVE_HISTORY or --save-history are set
  • Command is run successfully

Purpose

Suggested commands from llm cmd that I choose to run are worth recording as many of them will be new and worth learning or being able to find easily.

Please note: the tests pass but may be of questionable value as they are generated and have not had a good human review.

Append command to $HISTFILE if all of the following conditions are met:

- HISTFILE env var is set
- Either LLM_CMD_SAVE_HISTORY or --save-history are set
- Command is run successfully
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

Successfully merging this pull request may close these issues.

1 participant