NixOS / patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables
GNU General Public License v3.0
3.57k stars 486 forks source link

fix & feat: enhanced completion for zsh #552

Open RocketMaDev opened 7 months ago

RocketMaDev commented 7 months ago

I fixed zsh completion which is not working properly (like #549), now files can be completed. What's more, I add a feature that when triggering Tab where dependencies should be entered, the dependencies of the elf will pop out. Here's a screenshot:

Typical case

If the elf is the first arg, it works, too:

File is in the front

In any other cases (file is not exist, or is a .so, or is not exist), the match fallback to the default _files match.

Error handling

I tried my best to test all the cases on my machine and it should be right.

RocketMaDev commented 4 months ago

I've tested a lot and everything works. Would there be someone help me merge it in?