zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

Create a symlink instead of file #640

Closed grigorii-horos closed 11 months ago

grigorii-horos commented 2 years ago

${0} not compatible with some zsh plugin managers

ericfreese commented 2 years ago

My understanding is that the sym link doesn't work in some environments like windows mSYS2 (see PR #156). It looks like zsh-syntax-highlighting may have an approach that works for both. Can you try implementing this here instead?

https://github.com/zsh-users/zsh-syntax-highlighting/blob/c7caf57ca805abd54f11f756fda6395dd4187f8a/zsh-syntax-highlighting.plugin.zsh

grigorii-horos commented 2 years ago

My understanding is that the sym link doesn't work in some environments like windows mSYS2

Oops… I didn't know.

Maybe we can use this for $0 handling?

ericfreese commented 11 months ago

@grigorii-horos I've created a PR (#759) that takes the implementation from zsh-syntax-highlighting. I realize this PR is very old, but take a look if you're able. I'll likely merge it soon.