Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
scp completion of abbreviated paths
- X-seq: zsh-workers 25229
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: scp completion of abbreviated paths
- Date: Sat, 21 Jun 2008 18:46:28 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author