zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.74k stars 122 forks source link

[bug]: loading plugins changes PWD #543

Open NightMachinery opened 1 year ago

NightMachinery commented 1 year ago

What happened?

When loading plugins, PWD is changed.

zinit light zsh-users/zsh-autosuggestions
zinit light zdharma-continuum/fast-syntax-highlighting

causes PWD to become ~/-M fsh_sy_h_append 2 2 -fsh_sy_h_shappend.

Steps to reproduce

_

Relevant output

No response

Screenshots and recordings

No response

Operating System & Version

OS: linux-gnu | Vendor: ubuntu | Machine: x86_64 | CPU: x86_64 | Processor: x86_64 | Hardware: x86_64

Zsh version

zsh 5.8 (x86_64-ubuntu-linux-gnu)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

vladdoster commented 10 months ago

@NightMachinery,

I can't seem to reproduce this bug. How did you isolate the issue to the two plugins you specified?

Screenshot 2023-08-20 at 02 05 42

Could you respond with the output of following commands?

+zi-log "{m} current dir: $PWD"
+zi-log "{m} dirs: {nl} $(dirs)"
+zi-log "{m} options: {nl} $(setopt)"
+zi-log "{nl}"
zi delete --all --yes
zi zstatus
zi load zsh-users/zsh-autosuggestions
zi load zdharma-continuum/fast-syntax-highlighting
zi plugins
zi zstatus
+zi-log "{nl}"
+zi-log "{m} current dir: $PWD"
+zi-log "{m} dirs: {nl} $(dirs)"
+zi-log "{m} options: {nl} $(setopt)"