Skip to content
Snippets Groups Projects
Commit ac73f21f authored by Christian Engwer's avatar Christian Engwer
Browse files

rename dune.complete to dunecontrol

parent bc787c89
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ _dunecontrol_complete () ...@@ -10,7 +10,7 @@ _dunecontrol_complete ()
if test "x$DUNE_MODULES" != x; then if test "x$DUNE_MODULES" != x; then
MODULES=$DUNE_MODULES MODULES=$DUNE_MODULES
fi fi
# get cimpletion information # get cimpletion information
local cur prev words cword split local cur prev words cword split
_init_completion -s || return _init_completion -s || return
...@@ -62,7 +62,7 @@ _dunecontrol_complete () ...@@ -62,7 +62,7 @@ _dunecontrol_complete ()
# if we already have a command, we either pass an options to the command, # if we already have a command, we either pass an options to the command,
# or we add a colon for the next command # or we add a colon for the next command
if test x$have_command = x1; then if test x$have_command = x1; then
COMPREPLY=( $(compgen -W " -- : " -- $cur ) ) COMPREPLY=( $(compgen -W " -- : " -- $cur ) )
return 0; return 0;
fi fi
...@@ -80,12 +80,4 @@ _dunecontrol_complete () ...@@ -80,12 +80,4 @@ _dunecontrol_complete ()
# don't append space to options --foo=... # don't append space to options --foo=...
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
} } && complete -F _dunecontrol_complete dunecontrol
_dune_complete_init () {
# complete -F _duneproject_complete duneproject
complete -F _dunecontrol_complete dunecontrol
}
_dune_complete_init
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment