1
# Monodevelop completion
7
_get_comp_words_by_ref cur
9
if [[ "$cur" == -* ]]; then
10
COMPREPLY=( $( compgen -W '-? -help -help2 -ipc-tcp -newwindow -nologo \
11
-usage -V -version' -- "$cur" ) )
17
complete -F _monodevelop monodevelop
22
local cur prev command i
26
_get_comp_words_by_ref cur prev
28
for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
29
if [[ ${COMP_WORDS[i]} == @(build|generate-makefiles|setup) ]]; then
30
command=${COMP_WORDS[i]}
34
if [[ -n "$command" ]]; then
37
COMPREPLY=( $( compgen -W '--f --buildfile --p --project' \
39
# TODO: This does not work :(
40
#if [[ "$prev" == *: ]]; then
43
# COMPREPLY=( $( compgen -f -G "*.mdp" -- "$cur" ) )
45
# @(--f:|--buildfile:))
46
# COMPREPLY=( $( compgen -f -G "*.mdp" -G "*.mds" -- "$cur" ) )
53
COMPREPLY=( $( compgen -o filenames -G"*.mds" -- "$cur" ) )
54
if [[ "$prev" == *mds ]]; then
55
COMPREPLY=( $( compgen -W '--simple-makefiles --s --d:' \
61
# TODO: at least return filenames after these options.
62
COMPREPLY=( $( compgen -W 'install i uninstall u check-install \
63
ci update up list l list-av la list-update lu rep-add ra \
64
rep-remove rr rep-update ru rep-list rl reg-update \
65
reg-build rgu info rep-build rb pack p help h dump-file' \
72
COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export \
73
generate-makefiles gettext-update setup -q' -- "$cur" ) )
77
complete -F _mdtool -o filenames mdtool
82
# sh-indent-comment: t
83
# indent-tabs-mode: nil
85
# ex: ts=4 sw=4 et filetype=sh