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

[Contribution] ZSH Completion file #559

Open
obeone opened this issue May 6, 2024 · 1 comment
Open

[Contribution] ZSH Completion file #559

obeone opened this issue May 6, 2024 · 1 comment

Comments

@obeone
Copy link

obeone commented May 6, 2024

Hi,

I (no ok, not me, GPT-4) created a very performant ZSH completion file for sgpt command. You can find it here, fell free to add it to the project: https://gist.github.com/obeone/dc66f2ca40b8254edab61ac50cdec0f3

To give some context: While working on a custom GPT "ZSH Expert" that I am creating, I tested asking it for a completion for sgpt, and the result is surprisingly very good!

@obeone
Copy link
Author

obeone commented Jun 26, 2024

I made some change to the original script :

  • The completion of the role was bugged; it indicated .json at the end of role and it was not compatible with the expected arguments. The extension is now correctly filtered; however, if you have been impacted by the problem, you have to manually delete the existing cache of roles : rm ~/.cache/sgpt_roles
  • Removing caches on chats, it was impossible to detect their creation of a new chat and therefore invalidate this cache. It is still retained on roles, even if the same defect is present. Because roles, to me, do not change every hours.

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

1 participant