/
valemobil
/
Mypal68
Обзор
Документация
Войти
/
valemobil
/
Mypal68
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
python/mach/bash-completion.sh
18 строк
478 B
Feodor2
68.12.1 version - first release unstable.
16 апр 2022, 07:41
16 апр 2022, 07:41
d379d28
Код
Авторство
О чём код?
function _mach() { local cur targets COMPREPLY=() # Calling `mach-completion` with -h/--help would result in the # help text being used as the completion targets. if [[ $COMP_LINE == *"-h"* || $COMP_LINE == *"--help"* ]]; then return 0 fi # Load the list of targets targets=`"${COMP_WORDS[0]}" mach-completion ${COMP_LINE}` cur="${COMP_WORDS[COMP_CWORD]}" COMPREPLY=( $(compgen -W "$targets" -- ${cur}) ) return 0 } complete -o default -F _mach mach