Skip to content
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

Fish not considering hosts in ~/.ssh/config #4195

Closed
spacekookie opened this issue Jul 7, 2017 · 3 comments
Closed

Fish not considering hosts in ~/.ssh/config #4195

spacekookie opened this issue Jul 7, 2017 · 3 comments

Comments

@spacekookie
Copy link

Fish version: fish, version 2.6.0
OS: Arch Linux

I have oh-my-fish and a few plugins via it installed but this issue still occurs without them.

My problem is that when typing "ssh" and trying to tab-complete hosts that fish will only consider hosts from ~/.ssh/known_hosts and not my ssh config. My ssh config is a valid syntax, for example:


Host icarus
  User            spacekookie
  HostName        <ip-address-here>
  IdentitiesOnly  yes
  IdentityFile    ~/.ssh/<keyfile-here>
  Port            22

Yet trying to type ssh ic and tab-completing doesn't sugest "icarus" but rather try to auto-complete folders in my current directory. I've seen closed issues about this before that were dated back a few years and apparently it was fixed. And I could swear that fish used to do this. Is it maybe a regression with something in a newer version? Would be nice if you could get this working again.

If you need more information from me, please tell me what to post. Thanks

@faho
Copy link
Member

faho commented Jul 7, 2017

This should already be fixed in the next release via #4104.

If you want it earlier, you can download the new version of the __fish_print_hostname function and store it in your $fish_function_path.

@faho faho closed this as completed Jul 7, 2017
@faho faho added the duplicate label Jul 7, 2017
@spacekookie
Copy link
Author

Ah, thanks. I didn't check the pull requests for info before making an issue. When can I expect the feature roughly then? 2.7? Or is there gonna be a patch version before then?

@faho
Copy link
Member

faho commented Jul 7, 2017

When can I expect the feature roughly then? 2.7? Or is there gonna be a patch version before then?

Yes, 2.7, which is currently planned for September.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants