Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
known hosts tab completion
- X-seq: zsh-users 16982
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: known hosts tab completion
- Date: Wed, 4 Apr 2012 10:58:46 +0300
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id :mime-version:content-type; s=mesmtp; bh=0PLfmOVR9/EtVL6b6vCrYqO YMqM=; b=LYiy86pXM8qsHXsnmrrI3IaUxyTAv8uQTMlzA2YaDcVW7tPloA17bVF KHnXjzJNLrsDHq5Wz1qoqcdEVfGbpzfZ0QDMFZuPhEQLkKcmkAuUXJoHBDHzlWHM jsBMll+QjgXk6h9FC/7QLOTZIaFp/0gdd8JZEZRM6xCwW3gXNOWE=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:subject:message-id :mime-version:content-type; s=smtpout; bh=0PLfmOVR9/EtVL6b6vCrYq OYMqM=; b=R2IrwXIagN2lx8PfIRCGShDaARmillTEdAQpQMQa8w3MCAVag8SPM/ EiHOHNtRPOT/9++L+ubzO4eGGvXiKTTmus3p9fG14ch5BIqE8lI2crBV3aWCYc6X SmyCF3T+QOFIe61bXUJ4lzDduFTMdfwrneZMmw1w4K3qxpqAg71fU=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
(4.3.15, FreeBSD port. I already tried manpages and IRC.)
In ~/.ssh/config I have three hosts: foo.tld foo-1.tld foo-2.tld
At a new prompt, under 'zsh -f; autoload compinit; compinit',
I type: ssh foo<tab>
I get: ssh foo<cursor>.tld
What I want to do: complete to 'foo.tld' and move to the end of the
input line, in order enter a command (e.g., 'ssh foo.tld <cursor>'
in order to run 'ssh foo.tld date')
I don't see how to do that.
I see two workarounds: (a) press <tab> three times, to cycle through the
completions once; (b) 'setopt MENU_COMPLETE' (but that loses me
the ability to complete an unambiguous prefix (namely, 'cd ~/d<tab>' ->
'cd ~/do<cursor>' when ~/docs and ~/dots exist), which is a deal breaker
for me).
As to possible solutions, I'd be happy with something that doesn't fill
the ".tld" part to the right of the cursor, as then I could just type
'.<tab>' to get what I want (with the trailing space, even).
Pointers, please?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author