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 shell integration #323

Merged
merged 2 commits into from
Feb 26, 2024
Merged

feat: add shell integration #323

merged 2 commits into from
Feb 26, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Feb 26, 2024

This is a very handy feature, which allows you to use aichat shell completions directly in your terminal, without the need to type aichat with prompt and arguments. This feature puts aichat completions directly into terminal buffer (input line), allowing for immediate editing of suggested commands.

aichat-integration

To install shell integration, run the following code:

sh_ext=bash # possible values: bash, fish, zsh, ps1
curl -o aichat-integration.$sh_ext https://raw.githubusercontent.com/sigoden/aichat/main/scripts/integration.$sh_ext
. aichat-integration.$sh_ext

@sigoden sigoden merged commit ff0ec15 into main Feb 26, 2024
3 checks passed
@sigoden sigoden deleted the feat-shell-integration branch February 26, 2024 03:28
@sigoden sigoden mentioned this pull request Mar 6, 2024
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.

None yet

1 participant