/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.90
completions/removepkg
19 строк
512 B
Ville Skyttä
Move Emacs indentation settings from every file to .dir-locals.el.
02 ноя 2011, 00:14
02 ноя 2011, 00:14
0d10b94
Код
Авторство
О чём код?
# Slackware Linux removepkg completion -*- shell-script -*- _removepkg() { local cur prev words cword _init_completion || return if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '-copy -keep -preserve -warn' \ -- "$cur" ) ) return 0 fi local root=${ROOT:-/} COMPREPLY=( $( cd "$root/var/log/packages" 2> /dev/null || return 1 ; \ compgen -f -- "$cur" ) ) } && complete -F _removepkg removepkg # ex: ts=4 sw=4 et filetype=sh