Closed yanxiang-wang closed 2 years ago
No matter I use
zinit wait lucid as"completion" for \ OMZP::docker/_docker \ OMZP::docker-compose/_docker-compose
or
zinit ice as"completion" zinit snippet OMZP::docker/_docker
The completion function does not work at all. I am confused.
# oh my posh eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/M365Princess.omp.json)" ### Added by Zinit's installer if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})β¦%f" command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ print -P "%F{33} %F{34}Installation successful.%f%b" || \ print -P "%F{160} The clone has failed.%f%b" fi source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit # Load a few important annexes, without Turbo # (this is currently required for annexes) zinit light-mode for \ zdharma-continuum/zinit-annex-as-monitor \ zdharma-continuum/zinit-annex-bin-gem-node \ zdharma-continuum/zinit-annex-patch-dl \ zdharma-continuum/zinit-annex-rust ### End of Zinit's installer chunk # Plugin history-search-multi-word loaded with investigating. zinit load zdharma-continuum/history-search-multi-word # Two regular plugins loaded without investigating. zinit light zsh-users/zsh-autosuggestions zinit light zdharma-continuum/fast-syntax-highlighting # Snippet zinit snippet https://gist.githubusercontent.com/hightemp/5071909/raw/ zinit load agkozak/zsh-z # Oh My Zsh zinit for \ OMZL::correction.zsh \ OMZL::directories.zsh \ OMZL::history.zsh \ OMZL::key-bindings.zsh \ OMZL::theme-and-appearance.zsh \ OMZP::common-aliases zinit wait lucid for \ OMZP::colored-man-pages \ OMZP::cp \ OMZP::extract \ OMZP::fancy-ctrl-z \ OMZP::git \ OMZP::sudo zinit wait lucid as"completion" for \ OMZP::docker/_docker \ OMZP::docker-compose/_docker-compose zinit ice as"completion" zinit snippet OMZP::docker/_docker # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/opt/homebrew/Caskroom/miniforge/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh" ]; then . "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh" else export PATH="/opt/homebrew/Caskroom/miniforge/base/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
9ee45d6804fdf4972a9e913a1ad86d77de124231
5.8
CPUTYPE=arm64 MACHTYPE=x86_64 OSTYPE=darwin21.0 uname: illegal option -- - usage: uname [-amnprsv]
Sorry, the problem is I didn't call zicompinit in my zshrc.
zicompinit
Issue description
No matter I use
or
The completion function does not work at all. I am confused.
zinit config
zinit version or commit ID
9ee45d6804fdf4972a9e913a1ad86d77de124231
zsh version
5.8
host info
CPUTYPE=arm64 MACHTYPE=x86_64 OSTYPE=darwin21.0 uname: illegal option -- - usage: uname [-amnprsv]