-
Here is my config: zshrc
zshenv
Error says: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi 👋. In your zshenv, there is a lot of variable useless, the only variable really useful iw home_dir. See https://wiki.zshell.dev/docs/guides/customization#customizing-paths for more informations. |
Beta Was this translation helpful? Give feedback.
-
Try this if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
typeset -Ag ZI
export ZI[HOME_DIR]="${HOME}/.local/zi"
if [[ -r "${ZI[HOME_DIR]}/zi/init.zsh" ]]; then
source "${ZI[HOME_DIR]}/zi/init.zsh" && zzinit
else
source <(curl -sL https://init.zshell.dev); zzinit
fi
autoload -Uz $fpath[1]/*(.:t)
snippets=({git,sudo,extract,aliases}.zsh)
zi ice has'svn' svn multisrc'$snippets' pick'/dev/null' \
atinit'HISTFILE=${ZSH_CACHE_DIR}/.zsh-history; COMPLETION_WAITING_DOTS=true;'
zi light-mode for z-shell/z-a-meta-plugins @annexes @romkatv
alias reload!='exec "$SHELL" -l'
alias reload-zsh!='exec zsh -l' |
Beta Was this translation helpful? Give feedback.
-
You missed and did not set the ZI hash and value. As described in the wiki: https://wiki.zshell.dev/docs/getting_started/installation#manual-setup This probably happened because expected that It should be adjusted in the file: typeset -A ZI
ZI[BIN_DIR]="${HOME}/.zi/bin"
source "${ZI[BIN_DIR]}/zi.zsh" then enable the completion: autoload -Uz _zi
(( ${+_comps} )) && _comps[zi]=_zi Alternatively can directly source Zi with no parameter: source /your/path/to/zi.zsh This is equal to: typeset -A ZI
ZI[BIN_DIR]="${HOME}/.zi/bin"
source "${ZI[BIN_DIR]}/zi.zsh" Zi will create and assign the environment default values as described on the wiki: https://wiki.zshell.dev/docs/guides/customization#customizing-paths |
Beta Was this translation helpful? Give feedback.
You missed and did not set the ZI hash and value. As described in the wiki: https://wiki.zshell.dev/docs/getting_started/installation#manual-setup
This probably happened because expected that
.zshenv
is always sourced which is true but it's sourced only on login or manually running:exec zsh -l
.It should be adjusted in the file:
~/.zshrc
:then enable the completion:
Alternatively can directly source Zi with no parameter:
source /your/path/to/zi.zsh
This is equal to:
Zi will create and as…