/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.17.0
completions/sshfs
24 строки
655 B
Koichi Murase
fix(sshfs): work around bash-4.3 nounset
17 июн 2025, 16:27
17 июн 2025, 16:27
2c54a45
Код
Авторство
О чём код?
# sshfs(1) completion -*- shell-script -*- _comp_cmd_sshfs() { local cur prev words cword comp_args _comp_initialize -n : -- "$@" || return _comp_expand || return if [[ $cur == *:* ]]; then if _comp_compgen -x scp remote_files -d; then # unlike scp and rsync, sshfs works with 1 backslash instead of 3 COMPREPLY=("${COMPREPLY[@]//\\\\\\/\\}") fi return fi [[ $cur == @(*/|[.~])* ]] || _comp_compgen_known_hosts -c -a -- "$cur" _comp_compgen -ax scp local_files -d } && complete -F _comp_cmd_sshfs -o nospace sshfs # ex: filetype=sh