MichaelAquilina / zsh-you-should-use

📎 ZSH plugin that reminds you to use existing aliases for commands you just typed
GNU General Public License v3.0
1.41k stars 44 forks source link

can not parse you-should-use.plugin.zsh with oh-my-zsh in wsl2 #126

Closed e365367 closed 11 months ago

e365367 commented 11 months ago

Issue Details

After install it, I source my .zshrc file, and then I got error, and I can not use the plugin. image

Please provide the following details when opening an issue:

Operating System (uname -a)

image

zsh version (zsh --version)

image

you-should-use version (echo "$YSU_VERSION")

image

How is zsh-you-should-use installed?

Steps to reproduce the issue

gist link to your zshrc

MichaelAquilina commented 11 months ago

That actually seems quite strange.

What does head -20 ~/.oh-my-zsh/custom/plugins/you-should-use/you-should-use.plugin.zsh return?

e365367 commented 11 months ago

That actually seems quite strange.

What does head -20 ~/.oh-my-zsh/custom/plugins/you-should-use/you-should-use.plugin.zsh return?

thank you for your reply !I resolved it just now,it is because the format of the file is windows,I exec the cmd: "dos2unix you-should-use.plugin.zsh" , and then it is ok.

MichaelAquilina commented 11 months ago

Nice :) thanks for replying back with what the solution was. Closing this Issue then