repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
tools
/
monop
/
monop-completion.sh
blob
e7691ec41e727356bd52388cce04c73fa1a4dd4f
1
# function for monop bash completion, source it from other scripts like .bashrc
2
3
completion_monop
()
4
{
5
local
sw
6
cur
=
${COMP_WORDS[COMP_CWORD]}
7
[
"
$cur
"
] &&
COMPREPLY
=(
$
(
compgen
-W
"`monop -c
${cur}
`"
--
$cur
))
8
}
9
complete
-F
completion_monop monop