Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

scp completion of abbreviated paths



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