[bug]: Compinit errors due to lingering calls #226
Answered
by
ss-o
signed-log
asked this question in
Q&A
-
EnvironmentOSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9 Expected behaviorNo compinit errors Current behavior
Steps to reproduceIt is a lingering error that has been going for sometimes, doing Code snippetif [ -f $HOME/.config/zsh/zenv.zsh ]; then
source $HOME/.config/zsh/zenv.zsh
fi
zi_home="${HOME}/.zi"
if [[ ! -d "$zi_home"/bin ]]; then
typeset -Ag ZI
export ZI[BIN_DIR]="${XDG_CONFIG_HOME:-${HOME}/.config}/zi/bin"
source "${ZI[BIN_DIR]}/zi.zsh"
autoload -Uz _zi
(( ${+_comps} )) && _comps[zi]=_zi
else
typeset -Ag ZI
export ZI[BIN_DIR]="$zi_home"
source "${ZI[BIN_DIR]}/bin/zi.zsh"
autoload -Uz _zi
(( ${+_comps} )) && _comps[zi]=_zi
fi
# Git
zi snippet OMZL::git.zsh
zi snippet OMZP::git
zi cdclear -q
# Git [Addons]
zi snippet OMZP::git-extras
# zi snippet OMZP::gh
zi snippet OMZP::git-lfs
if [[ $OSVER == *"SUSE"* ]]; then
zi snippet OMZP::suse
fi
# GPG/SSH/Security
zi snippet OMZP::gpg-agent
zi snippet OMZP::ssh-agent
zi snippet OMZP::keychain
zi snippet OMZP::safe-paste
zi snippet OMZP::firewalld
# Python
zi snippet OMZP::pip
zi snippet OMZP::pipenv
zi snippet OMZP::python
zi snippet OMZP::pylint
# Sysadmin
zi snippet OMZP::sudo
zi snippet OMZP::cp
zi snippet OMZP::systemd
zi snippet OMZP::systemadmin
zi snippet OMZP::tmux
# Other
zi snippet OMZP::urltools
zi snippet OMZP::common-aliases
zi ice as"completion"
zi snippet OMZP::ag/_ag
zi snippet OMZP::docker
zi snippet OMZP::colored-man-pages
# OOB (Out-of-band)
zi load buonomo/yarn-completion
zi load chrissicool/zsh-256color
zi load zsh-users/zsh-completions
zi load lukechilds/zsh-better-npm-completion
zi load lukechilds/zsh-nvm
zi load zsh-users/zsh-syntax-highlighting
zi load z-shell/F-Sy-H
zi load z-shell/H-S-MW
zi load spaceship-prompt/spaceship-prompt
# Completions
if command -v restic > /dev/null; then
zi ice lucid wait as'completion' blockf has'restic'
zi snippet "$HOME/.local/share/completions/_restic"
fi
if command -v gh > /dev/null; then
zi ice lucid wait as'completion' blockf has'gh'
zi snippet "$HOME/.local/share/completions/_gh"
fi
setopt promptsubst
zi snippet OMZL::prompt_info_functions.zsh
zi snippet OMZL::theme-and-appearance.zsh
# zi snippet OMZT::3den
# Patched theme to display 24h time
# zi snippet "https://github.com/signed-log/ohmyzsh/blob/24h-time/themes/mikeh.zsh-theme"
#Config
#Keychain
zstyle :omz:plugins:keychain options --quiet
zstyle :omz:plugins:keychain agents gpg,ssh
zstyle :omz:plugins:keychain identities id_ed25519_gitit id_ed25519_servers id_ed25519_local id_ecdsa id_greytop
if [ -f $HOME/.config/zsh/zaliases.zsh ]; then
source $HOME/.config/zsh/zaliases.zsh
fi
autoload -Uz compinit && compinit
# Zstyle
zstyle ':completion:*:matches' group 'yes'
zstyle ':completion:*:options' description 'yes'
zstyle ':completion:*:options' auto-description '%d'
zstyle ':completion:*:corrections' format ' %F{green}-- %d (errors: %e) --%f'
zstyle ':completion:*:descriptions' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
zstyle ':completion:*' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' verbose yes
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
zstyle ':completion:*' use-cache true
zstyle ':completion:*' rehash true
zstyle ':completion::complete:*' gain-privileges 1
setopt COMPLETE_ALIASES
zstyle ':completion:*' menu select
zstyle :plugin:history-search-multi-word reset-prompt-protect 1
# Setopt
setopt pushd_ignore_dups
setopt auto_pushd
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_space
setopt hist_reduce_blanks
[[ -d /opt/asdf-vm ]] && . /opt/asdf-vm/asdf.sh
zi light-mode for \
z-shell/z-a-meta-plugins \
@annexes @zunit
if [[ -d $HOME/.pyenv ]]; then
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi Aditional information
Self-service
Have you read the Contributing Guidelines?
Are you familiar with Contributor Covenant Code of Conduct?
Contact Details |
Beta Was this translation helpful? Give feedback.
Answered by
ss-o
Oct 26, 2022
Replies: 1 comment
-
Zi commands are available in the wiki.
# Clear stray and improper completions
zi cclear |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ss-o
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zi commands are available in the wiki.
# Clear stray and improper completions zi cclear