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

ssh autocompletion of hosts not working #44

Closed
yunzheng opened this issue Jun 6, 2012 · 5 comments
Closed

ssh autocompletion of hosts not working #44

yunzheng opened this issue Jun 6, 2012 · 5 comments
Labels
Milestone

Comments

@yunzheng
Copy link

yunzheng commented Jun 6, 2012

When typing "ssh " followed with a tab, it autocompletes to listing the current directory instead of available hosts in my ~/.ssh/known_hosts config.

when executing "__fish_print_hostnames" it does show hosts but they do not work in the autocompletion.

@yunzheng
Copy link
Author

yunzheng commented Jun 6, 2012

I got it working by removing my "~/.config/fish/completions/ssh.fish" file that was generated by the "fish_update_completions" script.

@ridiculousfish
Copy link
Member

Thanks. We ought to not overwrite built-in completions.

@Deshke
Copy link

Deshke commented Jun 18, 2012

+1
but i've remove the ~/.config/fish/completions/ssh.fish - only the hosts from my known_hosts are listed, my ssh config are more or less ignored :/

@ridiculousfish
Copy link
Member

fish_update_completions now knows better than to overwrite built-in completions. I think this has been fixed in trunk for a while - do you still see this?

@zanchey
Copy link
Member

zanchey commented Oct 6, 2014

This hasn't been touched for some time, and the move to generated_completions which is after the bespoke completions in the default order should have fixed this (if not fixed by #148).

@zanchey zanchey closed this as completed Oct 6, 2014
@zanchey zanchey modified the milestones: fish 2.0 (first stable release), fish-future Oct 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants