From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23377 invoked from network); 21 Feb 2000 22:20:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Feb 2000 22:20:57 -0000 Received: (qmail 12636 invoked by alias); 21 Feb 2000 22:20:41 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2923 Received: (qmail 12628 invoked from network); 21 Feb 2000 22:20:40 -0000 From: "Bart Schaefer" Message-Id: <000221142028.ZM1626@candle.brasslantern.com> Date: Mon, 21 Feb 2000 14:20:28 -0800 In-Reply-To: <2gi66vqc0we.fsf@dacia.kom.auc.dk> Comments: In reply to Claus Alboege "Completion" (Feb 15, 9:42am) References: <2gi66vqc0we.fsf@dacia.kom.auc.dk> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: Claus Alboege Subject: Re: Completion Cc: zsh-users@sunsite.auc.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 15, 9:42am, Claus Alboege wrote: > Subject: Completion > > Could anyone tell me how to make zsh (3.1.6-*) complete in this fasion: > > ssh -l I'm really surprized no one else has answered this yet ... zstyle '*:my-accounts' users-hosts tractrix:kom.auc.dk ... where ... are more strings of the form user:host, will set up zsh's idea of the accounts that are "you". These get used for ssh, rsh, and several other commands that take user, host, or user@host arguments. You can be more specific if you want: zstyle '*:ssh:*:my-accounts' users-hosts tractrix:kom.auc.dk ... zstyle '*:rsh:*:my-accounts' users-hosts alboege:fictitious.com ... There are also styles that are lists of hosts, users, other-accounts, etc., but you can cover most of the cases for ssh with just this one.