/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
completions-fallback/interdiff.bash
36 строк
912 B
Ville Skyttä
chore: remove most editor mode config comments
01 июн 2026, 21:26
01 июн 2026, 21:26
bdeca44
Код
Авторство
О чём код?
# interdiff(1) completion # Use of this file is deprecated. Upstream completion is available in # patchutil >= 0.4.3, use that instead. _comp_cmd_interdiff() { local cur prev words cword was_split comp_args _comp_initialize -s -- "$@" || return local noargopts='!(-*|*[Upd]*)' # shellcheck disable=SC2254 case $prev in --unified | --strip-match | --drop-context | -${noargopts}[Upd]) return ;; esac [[ $was_split ]] && return if [[ $cur == -* ]]; then _comp_compgen_help [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi local exts='@(?(d)patch|dif?(f))' word for word in "${words[@]}"; do if [[ $word == -@(z|-decompress) ]]; then exts+='?(.@(gz|bz2))' break fi done _comp_compgen_filedir "$exts" } && complete -F _comp_cmd_interdiff interdiff