From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-users@zsh.org>
Subject: Re: scp completion options
Date: Thu, 28 Jun 2018 09:38:33 +0100 [thread overview]
Message-ID: <20180628083835eucas1p2cb57feab1bca1540ed0a89cd6e26b9bb~8RikRcvz81808218082eucas1p2p@eucas1p2.samsung.com> (raw)
In-Reply-To: <20180627101312.GL11049@blackswan>
On Wed, 27 Jun 2018 11:13:12 +0100
David Woodfall <dave@dawoodfall.net> 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
next prev parent reply other threads:[~2018-06-28 8:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180626231957epcas4p275197b8b1b133496936cd1e2a59d15b6@epcas4p2.samsung.com>
2018-06-26 23:06 ` David Woodfall
2018-06-27 8:15 ` Peter Stephenson
2018-06-27 10:13 ` David Woodfall
2018-06-28 8:38 ` Peter Stephenson [this message]
2018-06-28 20:14 ` David Woodfall
2018-06-28 20:26 ` Bart Schaefer
2018-06-28 20:56 ` David Woodfall
2018-06-29 0:31 ` Bart Schaefer
2018-06-29 2:31 ` David Woodfall
2018-08-20 14:51 ` David Woodfall
[not found] ` <20180627091514.22955a04@camnpupstephen.cam.scsc.local>
2018-06-29 8:33 ` Peter Stephenson
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='20180628083835eucas1p2cb57feab1bca1540ed0a89cd6e26b9bb~8RikRcvz81808218082eucas1p2p@eucas1p2.samsung.com' \
--to=p.stephenson@samsung.com \
--cc=zsh-users@zsh.org \
/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).