/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.0
completions/ccache
26 строк
612 B
Ville Skyttä
ccache: New completion.
20 ноя 2011, 19:55
20 ноя 2011, 19:55
ed17034
Код
Авторство
О чём код?
# ccache(1) completion -*- shell-script -*- _ccache() { local cur prev words cword split _init_completion -s || return if [[ $COMP_CWORD -eq 1 && ${COMP_WORDS[COMP_CWORD]} != -* ]]; then _command_offset 1 return fi case $prev in -h|--help|-V|--version|-F|--max-files|-M|--max-size) return ;; esac $split && return COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace } && complete -F _ccache ccache # ex: ts=4 sw=4 et filetype=sh