* scp completion of abbreviated paths
@ 2008-06-21 18:46 Jörg Sommer
0 siblings, 0 replies; only message in thread
From: Jörg Sommer @ 2008-06-21 18:46 UTC (permalink / raw)
To: zsh-workers
Hi,
how can I change the scp completion to expand paths like /u/s/d/?
>From _ssh:
if [[ -z $QIPREFIX ]]
then rempat="${PREFIX%%[^./][^/]#}\*"
else rempat="${(q)PREFIX%%[^./][^/]#}\*"
fi
remfiles=(${(M)${(f)"$(_call_program files ssh $args -a -x ${IPREFIX%:} ls -d1FL "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
I think the rempat should be something like rempat=${rempat//\//*\/}. Do
you have better ideas?
Bye, Jörg.
--
Macht besitzen und nicht ausüben ist wahre Größe.
(Friedl Beutelrock)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-21 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-21 18:46 scp completion of abbreviated paths Jörg Sommer
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).