. Updated completion scripts:
* Remote branch names are now correctly completed for the
argument to Git remote/fetch/pull/push commands.
+ * Local pathname operands are now correctly completed for the
+ rsync command.
----------------------------------------------------------------------
Yash 2.48
. 補完スクリプトを更新:
* Git remote/fetch/pull/push コマンドの引数の補完でリモートの
ブランチ名が正しく補完されていなかった。
+ * rsync コマンドの引数の補完でローカルのパス名が正しく補完されて
+ いなかった。
----------------------------------------------------------------------
Yash 2.48
#TODO support rsync daemon protocol
command -f completion//getoperands
+ WORDS=(rsync "$WORDS")
if command -vf completion/scp::operand >/dev/null 2>&1 ||
. -AL completion/ssh; then
}
function completion/ssh::completeremotepath
- case $cmd in (scp|sftp)
+ case $cmd in (scp|sftp|rsync)
PREFIX=${TARGETWORD%"$path"}
typeset host="${${PREFIX%[/:]}/#${cmd}:\/\//ssh:\/\/}"
typeset name="${path##*/}"
esac
function completion/ssh::completelocalpath
- case $cmd in (scp)
+ case $cmd in (scp|rsync)
typeset slash=false
case $TARGETWORD in (*/*)
slash=