summaryrefslogtreecommitdiffstats
path: root/completions/sshfs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:18 +0000
commitf2621414ee5f2f601424c22f00e207903e3b6104 (patch)
tree56a856dafd1ca684bb23263cacaa723ee4f404fc /completions/sshfs
parentAdding debian version 1:2.11-8. (diff)
downloadbash-completion-f2621414ee5f2f601424c22f00e207903e3b6104.tar.xz
bash-completion-f2621414ee5f2f601424c22f00e207903e3b6104.zip
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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