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
for example, if we need to load some scripts from OMZ. Bascaly we will do
# OMZ Framework# this is the original method# zi snippet OMZ::lib/completion.zsh# zi snippet OMZ::lib/history.zsh# zi snippet OMZ::lib/key-bindings.zsh# zi snippet OMZ::lib/theme-and-appearance.zsh# this is the key to use multiple points on `cd .....` to back to multiple directories.# zi snippet OMZ::lib/directories.zsh
then, zinit official give another way (already replace with zi)
# this is copied from zinit # zi ice depth"1" multisrc="lib/{functions,misc}.zsh" pick"/dev/null"# zi load robbyrussell/oh-my-zsh
The reason why I find the way is that call wget/curl to download script is too slow, and it will be more slower when snippets become more and more. Especially in China (even using mirror), using git to update is also faster than call wget/curl everytime.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Show & Tell
Body
for example, if we need to load some scripts from OMZ. Bascaly we will do
then, zinit official give another way (already replace with zi)
we know it's an array, so we can do this
{{ choose_github_mirror() }}
is an jinja2 template. I use ansible to build.zshrc
and choose mirror in China. So it's optional.Also, load OMZ plugins can be:
The reason why I find the way is that call wget/curl to download script is too slow, and it will be more slower when snippets become more and more. Especially in China (even using mirror), using git to update is also faster than call wget/curl everytime.
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions