zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Petre Bandac <petre@kgb.ro>
Cc: zsh-users@sunsite.dk
Subject: Re: [newbie] bash-like feature - autocompletion problem
Date: Wed, 29 Jan 2003 11:47:25 +0100	[thread overview]
Message-ID: <1778.1043837245@finches.logica.co.uk> (raw)
In-Reply-To: <200301272332.12295.petre@kgb.ro>

On 27 Jan, Petre Bandac wrote:
> 
> those are the files - I guess :-)
> 
> On Monday 27 January 2003 12:54 Anno Domini, Oliver Kiddle wrote using one of his keyboards:
> } On 24 Jan, you wrote:
> } > on my linux machine (bash-2.5) I have added one entry in /etc/hosts
> } > stating 192.168.0.1 host1 - which helped me when ssh-ing (just typing=
>  ssh
> } > root@h[TAB]
> } >
> } > and I got the host1 completed)
> } >
> } > here, using zsh, I tried to do the same, but I get something like:
> } >
> } > [petre@kgb]$ more /etc/hosts | grep cockeru
> } >
> } > 192.168.108.176          cockeru
> } > [petre@kgb]$ ssh root@coc
> } >
> } > No matches for: `remote host name', `host', or `corrections'
> }
> } It ought to work on zsh without you doing anything. You couldn't send me
> } your /etc/hosts file by any chance? Have you set a hosts zstyle?
> }
> } > where and what should I modify ?
> }
> } Normallu, for ssh, I use something like:
> } zstyle ':completion:*:(ssh|scp):*:my-accounts' users-hosts root@host1

> Content-Disposition: attachment; filename=".zshrc"
> 
> #
> # Example .zshrc file for zsh 4.0
> #

> # Hosts to use for completion (see later zstyle)
> hosts=(`hostname` ftp.math.gatech.edu prep.ai.mit.edu wuarchive.wustl.edu)

> zstyle '*' hosts $hosts

These two lines in your .zshrc are the reason. The hosts style here
tells zsh's hosts completion to ignore /etc/hosts and complete the
listed hosts instead. If you want it to use /etc/hosts, try removing at
least the second of those lines.

The example .zshrc wasn't really intended to be just picked up and used
after changing nothing more than the prompt.

Oliver

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.


  parent reply	other threads:[~2003-01-29 10:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24 18:57 Petre Bandac
     [not found] ` <11265.1043664899@finches.logica.co.uk>
     [not found]   ` <200301272332.12295.petre@kgb.ro>
2003-01-29 10:47     ` Oliver Kiddle [this message]
2003-01-29 23:02 ` Deborah Ariel Pickett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1778.1043837245@finches.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=petre@kgb.ro \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).