z-shell / zi

✨ A Swiss Army Knife for Zsh - Unix Shell
https://wiki.zshell.dev
MIT License
735 stars 42 forks source link

[bug]: git.io/zi-loader url is not working #259

Closed rationalthinker1 closed 1 year ago

rationalthinker1 commented 1 year ago

Environment

Device: ubuntu | linux-gnu | x86_64 | /bin/bash | zsh | ubuntu/5.8-3ubuntu1.1

Reproduction steps

My zi loader is crashing.

Expected behavior

to load

Current behavior

/home/raza/.zshrc:134: command not found: zzinit
/home/raza/.zshrc:136: command not found: zi
/home/raza/.zshrc:136: command not found: zi
/home/raza/.zshrc:137: command not found: zi
/home/raza/.zshrc:137: command not found: zi
/home/raza/.zshrc:138: command not found: zi
/home/raza/.zshrc:138: command not found: zi
/home/raza/.zshrc:139: command not found: zi
/home/raza/.zshrc:139: command not found: zi
/home/raza/.zshrc:140: command not found: zi
/home/raza/.zshrc:140: command not found: zi
/home/raza/.zshrc:141: command not found: zi
/home/raza/.zshrc:141: command not found: zi
/home/raza/.zshrc:142: command not found: zi
/home/raza/.zshrc:142: command not found: zi
/home/raza/.zshrc:143: command not found: zi
/home/raza/.zshrc:144: command not found: zi
/home/raza/.zshrc:144: command not found: zi
/home/raza/.zshrc:145: command not found: zi
/home/raza/.zshrc:145: command not found: zi
/home/raza/.zshrc:146: command not found: zi
/home/raza/.zshrc:146: command not found: zi
/home/raza/.zshrc:147: command not found: zi
/home/raza/.zshrc:147: command not found: zi
/home/raza/.zshrc:148: command not found: zi

Code snippet

typeset -Ag ZI 
typeset -gx ZI[HOME_DIR]="${LOCAL_CONFIG}/zi" ZI[BIN_DIR]="${ZI[HOME_DIR]}/bin"
command mkdir -p "$ZI[BIN_DIR]"
source <(curl -sL git.io/zi-loader); zzinit         

Additional information

zi analytics is not loading

Self-service

Have you read the Contributing Guidelines?

Are you familiar with the Contributor Covenant Code of Conduct?

Contact Details

No response

ss-o commented 1 year ago

Hi @rationalthinker1,

It seems the git.io URL has been disabled, I will double-check what is going on. As a quick fix you can use alternative links: source <(curl -sL init.zshell.dev); zzinit, or you can download the loader snippet and place it to some path and then source it from the path you put the snippet, e.g.:

if [[ -r "${XDG_CONFIG_HOME:-${HOME}/.config}/zi/init.zsh" ]]; then
  source "${XDG_CONFIG_HOME:-${HOME}/.config}/zi/init.zsh" && zzinit
fi

Note

Downloading the loader snippet locally allows you to adjust Zi related configs.

rationalthinker1 commented 1 year ago

Got it. I loaded the init.zsh locally, Thank you.

rationalthinker1 commented 1 year ago

@ss-o, sorry to bother you, but can you change the installation page to update the url? https://wiki.zshell.dev/docs/getting_started/installation

ss-o commented 1 year ago

No problem :+1: Is this correct?

The git.io seems to work again, however here is some information to consider:

rationalthinker1 commented 1 year ago

Perfect. Thank you.

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] commented 1 year ago

Issue closed and locked due to lack of activity. If you encounter this same issue, please open a new issue and refer to this closed one.