summaryrefslogtreecommitdiffstats
path: root/completions/mussh
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/mussh
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/mussh')
-rw-r--r--completions/mussh26
1 files changed, 13 insertions, 13 deletions
diff --git a/completions/mussh b/completions/mussh
index c2f7a52..e36affe 100644
--- a/completions/mussh
+++ b/completions/mussh
@@ -1,52 +1,52 @@
# mussh(1) completion -*- shell-script -*-
-_mussh()
+_comp_cmd_mussh()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
--help | -V | -m | -t)
return
;;
-d)
- COMPREPLY=($(compgen -W '{0..2}' -- "$cur"))
+ _comp_compgen -- -W '{0..2}'
return
;;
-v)
- COMPREPLY=($(compgen -W '{0..3}' -- "$cur"))
+ _comp_compgen -- -W '{0..3}'
return
;;
-i | -H | -C)
- _filedir
+ _comp_compgen_filedir
return
;;
-o | -po)
- _xfunc ssh _ssh_options
+ _comp_compgen -x ssh options
return
;;
-l | -L)
- COMPREPLY=($(compgen -u -- "$cur"))
+ _comp_compgen -- -u
return
;;
-s)
- _shells
+ _comp_compgen_shells
return
;;
-p | -h)
- [[ $cur == *@* ]] && _user_at_host || _known_hosts_real -a -- "$cur"
+ [[ $cur == *@* ]] && _comp_complete_user_at_host "$@" || _comp_compgen_known_hosts -a -- "$cur"
return
;;
-c)
compopt -o filenames
- COMPREPLY+=($(compgen -c -- "$cur"))
+ _comp_compgen_commands
return
;;
esac
[[ $cur != -* ]] ||
- COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ _comp_compgen_help
} &&
- complete -F _mussh mussh
+ complete -F _comp_cmd_mussh mussh
# ex: filetype=sh