Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ssh host completion: ~/.ssh/config vs /etc/hosts
- X-seq: zsh-workers 36098
- From: Moritz Bunkus <moritz@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: ssh host completion: ~/.ssh/config vs /etc/hosts
- Date: Tue, 11 Aug 2015 14:45:37 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bunkus.org; s=mail2015070101; t=1439297138; bh=eV6UU+51R3d4JrepxS4eBNan8PPxFCPc4Y3LtW8klJc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=VcBjOUE0w2NoaxASYvPHa1RIpHGTwHMT2rrvGRDi/J4UpmBj0tSz7NYCvFfNH2U7n gjE2jJxbL1Ekr/iNk/d/D02OdDjnEgn/xMSxkLhvUfhC1JJ8CWOXk3ynaj+upLd0/5 RAXVw4iE6kx075mfjkZZuzM0LsbEh+yUqFn0BkrUJ5q2yEgvALGX76EEFpFisWvPWS Cg7NZwz/k+q2XyaRBBkV5xvgtRHeGlavH75f1xqXXSb1b1bVt7qY3nhFRvr9F6vxd+ 4AqB8OdEh6dWz4etkigb62POdbUIo479MRvDCs4R7zEcFkckRYL7gSqBkAOhpwvUJA CZfxM+j9vrSW5Y1tEHqwq8sm5icThonSOAGU62kw7WsdKWtx/hnK6rcd/1oBCKVpLE LcN1gupsm+GQibFSses3agnmY6Ju1iE1Gmi7TgaXnCO5Pqd8s2eipR5Nz47hRBTAEi O3VbFBljewqiIrMAaU3SjEoYtbLvPW1NYNEIR5o6uaOoE0OuuTufnaRKFZco9LZwQw 1WUp4nXph/jS+yf8AgpRdq5zyMepAt6S+RZcDBFSU0Nma04cqXn8msXQbqTyK0WvBS 4uePdY1+QXjVAKgPsjfKQdDo5BF2/h3Y64iO6g2SBP/FUpKPF6PqmUnW9YiR0QCJA2 V4eKNhKHwrcOAJRWuqO5i2Ms=
- In-reply-to: <150810125039.ZM1691@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150810103355.GH4077@bunkus.org> <150810125039.ZM1691@torch.brasslantern.com>
Hey,
thanks for the pointer, Bart. Reverting the patch mentioned in
> http://www.zsh.org/mla/users/2007/msg00233.html
restores the behavior I want (and which I find less confusing, to be
honest): »ssh testme-<TAB>« now lists both the entries from /etc/hosts
as well as those from ~/.ssh/config.
> It seems a bit odd that this kicks in when there is no user-name part
> in the word being completed.
Even adding user@ I would expect all possible hosts to be listed, not
just the ones from /etc/hosts… To me the current behavior looks like a
bug. Why should entries from /etc/hosts be exclusive in any shape or
form? What makes them more special?
Note that I'm not really arguing against what the user in msg00233.html
wants to do. I'm talking about ssh completion's default behavior. Solely
from the point of view of ease of use.
Kind regards,
mosu
Attachment:
pgp_5SgeCvuiN.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author