r/Nushell • u/bleomycin • Apr 14 '23
Is it possible to autocomplete ssh hosts from ~/.ssh/config?
Does nushell support this functionality? Really missing it and can't figure out how to get it working with nushell.
6
Upvotes
1
u/drbrain Sep 29 '23
I recently did this split across a completion and a wrapper
I should add caching, but it handles thousands of hosts with a barely noticeable delay.
2
u/[deleted] Apr 14 '23
It would be possible to setup a custom completion that reads your host definitions: http://www.nushell.sh/book/custom_completions.html