Get completion working for kitten ssh

This commit is contained in:
Kovid Goyal
2023-02-19 20:50:58 +05:30
parent 590c1bd7ad
commit 407555c6c8
2 changed files with 4 additions and 2 deletions

View File

@@ -23,4 +23,6 @@ func specialize_command(ssh *cli.Command) {
ssh.ShortDescription = "Truly convenient SSH"
ssh.HelpText = "The ssh kitten is a thin wrapper around the ssh command. It automatically enables shell integration on the remote host, re-uses existing connections to reduce latency, makes the kitty terminfo database available, etc. It's invocation is identical to the ssh command. For details on its usage, see :doc:`/kittens/ssh`."
ssh.IgnoreAllArgs = true
ssh.OnlyArgsAllowed = true
ssh.ArgCompleter = cli.CompletionForWrapper("ssh")
}