From 6c09f2a45c5541e9c207d14fc7aa21a4a0066bde Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:19 +0200 Subject: Merging upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- completions/sshfs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'completions/sshfs') diff --git a/completions/sshfs b/completions/sshfs index 223d029..4b3f388 100644 --- a/completions/sshfs +++ b/completions/sshfs @@ -1,23 +1,23 @@ # sshfs(1) completion -*- shell-script -*- -_sshfs() +_comp_cmd_sshfs() { - local cur prev words cword - _init_completion -n : || return + local cur prev words cword comp_args + _comp_initialize -n : -- "$@" || return - _expand || return + _comp_expand || return if [[ $cur == *:* ]]; then - _xfunc ssh _scp_remote_files -d + _comp_compgen -x scp remote_files -d # unlike scp and rsync, sshfs works with 1 backslash instead of 3 COMPREPLY=("${COMPREPLY[@]//\\\\\\/\\}") return fi - [[ $cur == @(*/|[.~])* ]] || _known_hosts_real -c -a -- "$cur" + [[ $cur == @(*/|[.~])* ]] || _comp_compgen_known_hosts -c -a -- "$cur" - _xfunc ssh _scp_local_files -d + _comp_compgen -ax scp local_files -d } && - complete -F _sshfs -o nospace sshfs + complete -F _comp_cmd_sshfs -o nospace sshfs # ex: filetype=sh -- cgit v1.2.3