loiccoyle / zsh-github-copilot

🧠 GitHub Copilot for your command line
MIT License
57 stars 5 forks source link

Possibility to disable the check for gh or copilot extension on startup? #11

Open zzh8829 opened 1 week ago

zzh8829 commented 1 week ago

Hi I just started using this extension it works amazingly well. However in my environment gh and gh copilot cli are not available during the zsh plugin initialization phase. They are added into my path later in the zshrc. So right now I cannot use this extension as is. Is there a way to disable the validation error?

It would make more sense for the validation to run when the user invoke widgets for the first time.

cosy363 commented 1 day ago

Move your $PATH update before plugin initialization in .zshrc:

export PATH="$PATH:/path/to/gh"
...
plugins=(git, zsh-github-copilot, ...)
...

This ensures ghis available during plugin initialization, avoiding the error. 😊

loiccoyle commented 23 hours ago

Hi, sorry I missed this issue. Did you manage to figure it out? If not, I could add a way to disable the checks all together.