Closed misumisumi closed 1 year ago
I type a partial command and hit tab. Autocomplete works but I get the error message: _autocomplete.command:local:2: bad option: -P after use zinit update -a. I read #364 and tried to fix it, but couldn't resolve it.
_autocomplete.command:local:2: bad option: -P
zinit update -a
For example:
bad option
autoload -Uz compinit && compinit typeset -U path cdpath fpath manpath
declare -A ZINIT ZINIT_HOME=/home/sumi/.zinit ZINIT[HOME_DIR]=${ZINIT_HOME} [[ -r ${ZINIT_HOME} ]] || mkdir -p ${ZINIT_HOME} source "/nix/store/si4jh243d29ahifa488wnqq708jjc240-zinit-3.10.0/share/zinit/zinit.zsh"
zinit for \ PZTM::completion
2. Use this config, not return `bad option`
### Relevant output ```shell No response.
No response
OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64
zsh 5.9 (x86_64-pc-linux-gnu)
wezterm
None
I use NixOS.
I'm sorry I am closing this because I could not reproduce it on my other machine.
What happened?
I type a partial command and hit tab. Autocomplete works but I get the error message:
_autocomplete.command:local:2: bad option: -P
after usezinit update -a
. I read #364 and tried to fix it, but couldn't resolve it.For example:
Steps to reproduce
bad option
declare -A ZINIT ZINIT_HOME=/home/sumi/.zinit ZINIT[HOME_DIR]=${ZINIT_HOME} [[ -r ${ZINIT_HOME} ]] || mkdir -p ${ZINIT_HOME} source "/nix/store/si4jh243d29ahifa488wnqq708jjc240-zinit-3.10.0/share/zinit/zinit.zsh"
zinit for \ PZTM::completion
autoload -Uz compinit && compinit typeset -U path cdpath fpath manpath
declare -A ZINIT ZINIT_HOME=/home/sumi/.zinit ZINIT[HOME_DIR]=${ZINIT_HOME} [[ -r ${ZINIT_HOME} ]] || mkdir -p ${ZINIT_HOME} source "/nix/store/si4jh243d29ahifa488wnqq708jjc240-zinit-3.10.0/share/zinit/zinit.zsh"
Screenshots and recordings
No response
Operating System & Version
OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-pc-linux-gnu)
Terminal emulator
wezterm
If using WSL on Windows, which version of WSL
None
Additional context
I use NixOS.
Code of Conduct