You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes there are infrastructure servers where some ssh cli API provided (such as builders, storage). It will be good to have autocompletion for these remote commands. But It seems there is no support in bash-completion for that use case. It would be useful to have such support so completion for common (per organization) servers could be installed.
I see that _ssh completes with compgen -c -- "$cur" as for local commands, but such remote cli could be without command prefix (for example ssh girar (task|build|quota|...) <internal sub-command or options...>.)
Well I don't know how this could be implemented best way. But one ides is to have handler script like ssh_<hostname> which handles completions for <hostname>, and it could ne symlinked to a short or long hostname or other hostname variant.
The text was updated successfully, but these errors were encountered:
Describe the feature/solution
Sometimes there are infrastructure servers where some ssh cli API provided (such as builders, storage). It will be good to have autocompletion for these remote commands. But It seems there is no support in bash-completion for that use case. It would be useful to have such support so completion for common (per organization) servers could be installed.
I see that
_ssh
completes withcompgen -c -- "$cur"
as for local commands, but such remote cli could be without command prefix (for examplessh girar (task|build|quota|...) <internal sub-command or options...>
.)Well I don't know how this could be implemented best way. But one ides is to have handler script like
ssh_<hostname>
which handles completions for<hostname>
, and it could ne symlinked to a short or long hostname or other hostname variant.The text was updated successfully, but these errors were encountered: