Complete vdn-rsync

main
Clément FRÉVILLE 2 years ago
parent 0e482af3de
commit 85e709ee32

@ -89,6 +89,24 @@ _vdn_kill() {
fi
}
_vdn_rsync() {
local cur prev words cword
_init_completion -n : || return
if [[ $cur == -* ]]; then
COMP_WORDS[0]='rsync'
_command_offset 0
return
fi
if [[ $cur == *:* ]]; then
_vdn_guest_files
return
fi
_vdn_guest_hosts
if [[ $cur != *@* ]]; then
_vdn_local_files
fi
}
_vdn_scripts() {
local cur prev words cword
_init_completion || return
@ -173,6 +191,7 @@ complete -F _vdn_guest_operation vdn-halt
complete -F _vdn_infos vdn-infos
complete -F _vdn_kill vdn-kill
complete -F _vdn_set_network_dir vdn-open-network
complete -F _vdn_rsync vdn-rsync
complete -F _vdn_guest_operation vdn-save
complete -F _vdn_scp vdn-scp
complete -F _vdn_scripts vdn-scripts

Loading…
Cancel
Save