carapace-bin icon indicating copy to clipboard operation
carapace-bin copied to clipboard

ssh completer

Open rsteube opened this issue 4 years ago • 2 comments

Command

ssh

Description

OpenSSH remote login client

Homepage

https://www.openssh.com/

Documentation

https://man.openbsd.org/ssh

Repository

OpenSSH is the premier connectivity tool for remote login with the SSH protocol.

Complexity

M

Anything else?

No response

Tasks

finalize ssh completer

  • [ ] bindings
  • [ ] options
  • [x] host definitions

Polar

Fund with Polar

rsteube avatar Feb 23 '21 01:02 rsteube

Hope it's fine if I add this here, but all completion for ssh hosts should (imo) include host definitions from the configuration (.ssh/config) excluding ones containing wildcards.

Example with ripgrep:

rg --pcre2 -o -N '(?<=Host (?!.*\*))(.*)$' .ssh/config

tminich avatar May 30 '23 13:05 tminich

Agree on that, just didn't get around to parsing the config yet.

rsteube avatar May 30 '23 18:05 rsteube