/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4
completions/dd
30 строк
781 B
Ville Skyttä
*: Remove redundant return 0's
12 авг 2016, 19:53
12 авг 2016, 19:53
8611927
Код
Авторство
О чём код?
# bash completion for dd -*- shell-script -*- _dd() { local cur prev words cword _init_completion -n = || return case $cur in if=*|of=*) cur=${cur#*=} _filedir return ;; conv=*) cur=${cur#*=} COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock lcase notrunc ucase swab noerror sync' -- "$cur" ) ) return ;; esac _expand || return COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) \ $( compgen -W 'bs cbs conv count ibs if obs of seek skip' \ -S '=' -- "$cur" ) ) } && complete -F _dd -o nospace dd # ex: ts=4 sw=4 et filetype=sh