Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completing file names
- X-seq: zsh-users 8408
- From: lists <lists@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: completing file names
- Date: Fri, 21 Jan 2005 08:58:07 -0600
- Cc: "Andrei A.Voropaev" <av@xxxxxxxxxxxxx>
- In-reply-to: <20050121121305.GE19548@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050121092926.GD19548@xxxxxxxxxxxxxxxxxxx> <200501211046.j0LAkWuO007499@xxxxxxxxxxxxxx> <20050121121305.GE19548@xxxxxxxxxxxxxxxxxxx>
- Reply-to: zsh-users@xxxxxxxxxx
On Jan 21, 2005, at 6:13 AM, Andrei A. Voropaev wrote:
I've noticed that now
when I say 'scp host:/path/files/* .' zsh complains that there were no
matches found. To work around this I had to put quotes around the
host:/path/files/*.
Thanks to Bart for this one. From my .zshrc file:
### SSH filename globbing:
if [[ $ZSH_VERSION > 4.2 ]]; then
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
zstyle -e :urlglobber url-other-schema '[[ $words[1] == scp ]] &&
reply=("*") || reply=(http https ftp)'
fi
###
With the above magic, the * is automatically escaped as I type it. I
hope this is what you were looking for.
-Ryan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author