Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: _autocomplete.command:local:2: bad option: -P #510

Closed
1 task done
misumisumi opened this issue Apr 28, 2023 · 1 comment
Closed
1 task done

[bug]: _autocomplete.command:local:2: bad option: -P #510

misumisumi opened this issue Apr 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@misumisumi
Copy link

misumisumi commented Apr 28, 2023

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 use zinit update -a.
I read #364 and tried to fix it, but couldn't resolve it.

For example:
image

Steps to reproduce

  1. Use this config, return 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
  1. Use this config, not return 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"

Relevant output

No response.

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

  • I agree to follow this project's Code of Conduct
@misumisumi misumisumi added the bug Something isn't working label Apr 28, 2023
@misumisumi
Copy link
Author

I'm sorry
I am closing this because I could not reproduce it on my other machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants