agkozak / zsh-z

Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
MIT License
2.02k stars 76 forks source link

_zshz_find_matches:68: error in flags #47

Closed ravenxrz closed 3 years ago

ravenxrz commented 3 years ago

I installed this plugin on my mac and centos 7 manually. Both use the same config. But mac runs perfectly, centos not, and leaves "_zshz_find_matches:68: error in flags" message on my terminal. Any idea to fix this? Thx in advance.

agkozak commented 3 years ago

Thanks for reporting this error.

Could you confirm for me the version of ZSH you're using on CentOS? You can find that easily by typing

echo $ZSH_VERSION

Thanks!

agkozak commented 3 years ago

It looks to me as if a patch introduced a while back uses a flag that only works in newer versions of ZSH. I am keen, however, to keep ZSH-z working with ZSH versions going back as far as 4.3.11, so if you give me a few days, I'll come up with a way to do the same thing without using that flag.

agkozak commented 3 years ago

Try what I just put on the escaped_path_field branch to see if it fixes your problem.

ravenxrz commented 3 years ago

Thanks for reporting this error.

Could you confirm for me the version of ZSH you're using on CentOS? You can find that easily by typing

echo $ZSH_VERSION

Thanks!

The version is 5.0.2 on CentOS.

Try what I just put on the escaped_path_field branch to see if it fixes your problem.

Cool! everything works fine now. Thank you for this amazing plugin.

agkozak commented 3 years ago

@ravenxrz Thanks for your feedback. I have merged the changes to master, so you may switch back to using that.