summaryrefslogtreecommitdiffstats
path: root/completions/sshfs
diff options
context:
space:
mode:
Diffstat (limited to 'completions/sshfs')
-rw-r--r--completions/sshfs16
1 files changed, 8 insertions, 8 deletions
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