-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh tab completion with host name #46
Comments
I do not have this problem. I can tab complete hosts. Please link your .zimrc. |
I've pared down my In
I can type in Using zsh with |
so, it tab completes the hostnames rather than the hosts? |
Yes. From memory, prezto offers to complete both. |
mine tab completes both. Completion of remote hosts in menu:
Tab completion of
|
With
With
I'm not really sure why the |
Since I've pared the config files down to your repository versions, it's odd that I see different behaviour to you. Would it be possible for you to post your personal files, so I can try with them? |
My personal files are basically the same as the template files. I haven't touched anything with ssh other than enabling and using the ssh agent feature. |
FWIW I tried enabling the |
Just a note for the code I'm currently using. It's sourced from the link above, but I've removed
|
While I haven't found time to find a fix for this issue I can confirm the reported behavior. Tab completion delivers |
If someone wants to follow this up, this seems like a good place to start: http://www.zsh.org/mla/workers/2010/msg00535.html |
I copied following lines from prezto (
After including this, ssh hostcompletion from |
TBH, I dunno if @Eriner changed anything recently, but for some time now |
@PatTheMav FWIW it's still broken for me, once I take out my fix from |
I haven’t made any customisations to Zim. I do have ssh tab completion, but:
Hitting The first issue remains though, recalling a list of configured domains from tab completion doesn’t work. |
Might be looking into seeing what can be learned from prezto's approach, as well as the issues and resolutions for omz: ohmyzsh/ohmyzsh#4345 |
Ref: https://www.zsh.org/mla/users/2015/msg00467.html and `which _ssh_hosts` Fixes #46
Hi friends, it wouldn't let me tag some of you in the PR, but I believe #294 will solve this problem for everyone by forcing the completion to fallback to the |
@protist, @PatTheMav, does that PR resolve the issue to your satisfaction? |
Thanks @Eriner! I compared the output to my earlier comment, and the
However, TBH I find this an inferior fix than what I have in
You can see in my code the part suppressing the login names. I presume there's a way to suppress the plain |
@protist Cool. We can add more Just as a short follow-up, you can define the |
I think this change results in the _expected_ behavior. Users can always override this by overriding the zstyle, as that is a benefit of using zstyles. Ref: https://www.zsh.org/mla/users/2015/msg00467.html and `which _ssh_hosts` Fixes zimfw/zimfw#46. Closes zimfw/zimfw#294. Copied from zimfw/zimfw@2436a6d
For bug reports, please provide the following information:
Arch Linux, zim installed via AUR PKGBUILD (zsh-zim-git)
Description
prezto offers tab completion of ssh with host names. e.g. if there are hosts defined in
~/.ssh/config
, you can tab complete with these. This seems to be missing in zim.Steps to reproduce
Type in
$ ssh f<tab>
. Expect hostfoo
to be offered as a completion.The text was updated successfully, but these errors were encountered: