4 ms·
I've switched from bash to zsh a few weeks ago and overall, I'm pretty happy. Menu based auto completion for example is extremely nice. But I could never get a
by remuskaos 4y ago
I've switched from bash to zsh a few weeks ago and overall, I'm pretty happy. Menu based auto completion for example is extremely nice.
But I could never get auto complete for rsync to work. I have some hosts in ~/.ssh/config (think "Hostname prod01" etc) , and in bash auto complete works for ssh, scp and rsnyc ("rsync prod01:someFile .")
In zsh, this only works for scp and ssh, but not rsync, and I haven't found a way to make this work.
Does anyone know how to get it to work like in bash?
- idoubtit 4y agoI don't have a magical solution since you didn't give much context. I suppose that completion is enabled (compinit, complist) and generally working since you mentioned it for ssh & scp. Maybe you're just lacking the file that contains the completion instructions for rsync. It should be named "_rsync". In my case, Debian's "zsh-common" installs it in "/usr/share/zsh/functions/Completion/Unix/_rsync".
- remuskaos 4y agoThat's a good idea, thank you! I simply installed zsh over the package manager, autocomplete seems to work other than rsync. I'll look into it when I get back to the computer and report back.