You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using colima on an M1 mac, seems to be working one comment is that the text for the completions should change:
colima completion zsh --help
Says you should pip it to /usr/local but with m1, this has moved to /opt/homebrew if it is installed that way, so it should say when you run colima completion zsh --help:
To load completions for every new session, execute once:
# Linux or MacOS M1:
$ colima completion zsh > "${fpath[1]}/_colima"
# macOS Intel:
$ colima completion zsh > /usr/local/share/zsh/site-functions/_colima
# if homebrew installed
$ colima completion zsh > $(brew --prefix)/share/zsh/site-function/_colima
As an aside, if you do not what to make it that complicate the at least for Linux and M1, you can just use the fpath. Finally,
this says run it once, but this means that completions will get stale if you ever change the file, so the safer thing to
do is to put this into ~/.zshrc or ~/.bash_profile so that it refreshes
Ok, so #1719 has fixed the Homebrew path. You are right that if brew is not installed or used, the help is not correct.
Do Mac's come with Homebrew pre-installed?
Finally, this says run it once, but this means that completions will get stale if you ever change the file,
so the safer thing to do is to put this into ~/.zshrc or ~/.bash_profile so that it refreshes
Normally, as long as the tool for which your are doing completion has not been updated, then the completion script will not change. So, you are right that "execute once" can be a bit misleading as it should probably say "execute once after installing a new version of the tool".
Adding it in .zshrc would work but if done of every tool, would start having an impact on load time of a new shell, which is something people have complained about.
Using colima on an M1 mac, seems to be working one comment is that the text for the completions should change:
colima completion zsh --help
Says you should pip it to /usr/local but with m1, this has moved to /opt/homebrew if it is installed that way, so it should say when you run
colima completion zsh --help
:As an aside, if you do not what to make it that complicate the at least for Linux and M1, you can just use the fpath. Finally,
this says run it once, but this means that completions will get stale if you ever change the file, so the safer thing to
do is to put this into ~/.zshrc or ~/.bash_profile so that it refreshes
Originally posted by @richtong in abiosoft/colima#98
The text was updated successfully, but these errors were encountered: