Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: scp completion options
- X-seq: zsh-users 23510
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: scp completion options
- Date: Thu, 28 Jun 2018 09:38:33 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180628083837euoutp01a0aefaf2a29fd251b692192164455fa0~8RimOzUTo1207112071euoutp012
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1530175117; bh=rmERZKXTo5FIiVZQYUwGzFHSJ+u6NFgBkIxBqZYxosk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=cLyL17ZcVzz+eYK6wFXpKL830+wT5TBS+LtbWjhd4VgkfoVop7CW/xvUwOVbei4q0 8Awz4KCzu/RTi0hba04s0+1Bu/9dwClFpTSD7g6sL+hHKApkIDhL04AEe2wD7+D3BM hGpuLuhoIkvzOi+XmWeCaWm4RAY6jL/MhaRw1NtI=
- In-reply-to: <20180627101312.GL11049@blackswan>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180626231957epcas4p275197b8b1b133496936cd1e2a59d15b6@epcas4p2.samsung.com> <20180626230654.GK11049@blackswan> <20180627081516eucas1p200d804de13d1e5a4f7ea223ecb2d9c49~79k6870Wv1727517275eucas1p2j@eucas1p2.samsung.com> <20180627101312.GL11049@blackswan>
On Wed, 27 Jun 2018 11:13:12 +0100
David Woodfall <dave@xxxxxxxxxxxxxx> wrote:
> > scp_comp_helper() {
> > if [[ CURRENT -gt 2 && $words[2] != *:* && ]]; then
> > # Complete remotely only...?
> > reply=('hosts ????')
> > else
> > reply=('hosts files')
> > fi
> > }
> > zstyle -e ':completion:*:complete:scp:*:' tag-order
> > scp_comp_helper
>
> That's giving me an error on the 'if' line:
You need to get rid of the second && --- I originally had another test
I thought better of but didn't get rid of in the version I copied
into the e-mail, so it wasn't quite what I actually tried out.
As no-one has come up with anything better I may play with changing
_remote_files to use the tag remote-files and see if that helps.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author