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

Autocompletion for "ssh -F config someth<TAB>" is broken #6905

Open
jruere opened this issue Apr 16, 2020 · 3 comments
Open

Autocompletion for "ssh -F config someth<TAB>" is broken #6905

jruere opened this issue Apr 16, 2020 · 3 comments

Comments

@jruere
Copy link

jruere commented Apr 16, 2020

fish, version 3.1.0
3.1.0
Linux serpico 5.6.4-arch1-1 #1 SMP PREEMPT Mon, 13 Apr 2020 12:21:19 +0000 x86_64 GNU/Linux
xterm-256color

It completes some command instead of a host.

Using sh -c 'env HOME=$(mktemp -d) fish' has the same behaviour.

@faho
Copy link
Member

faho commented Apr 16, 2020

Yeah, the ssh completion needs to know about the actual option arguments.

In general this is a hard problem - in fact it's impossible without knowing the actual options.

In particular it means that the ssh completions need to be altered to use argparse.

@jruere
Copy link
Author

jruere commented Apr 16, 2020

This used to work in 2.something. Do I remember incorrectly?

@faho
Copy link
Member

faho commented Apr 16, 2020

Do I remember incorrectly?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants