From ac73f21fea7ed29671c8ad94ff40722a4f6af283 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Tue, 18 Mar 2014 15:34:58 +0100
Subject: [PATCH] rename dune.complete to dunecontrol

---
 .../bash-completion/{dune.complete => dunecontrol} | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
 rename share/bash-completion/{dune.complete => dunecontrol} (92%)

diff --git a/share/bash-completion/dune.complete b/share/bash-completion/dunecontrol
similarity index 92%
rename from share/bash-completion/dune.complete
rename to share/bash-completion/dunecontrol
index 75c16fe0b..0059530c8 100644
--- a/share/bash-completion/dune.complete
+++ b/share/bash-completion/dunecontrol
@@ -10,7 +10,7 @@ _dunecontrol_complete ()
   if test "x$DUNE_MODULES" != x; then
 	MODULES=$DUNE_MODULES
   fi
- 
+
   # get cimpletion information
   local cur prev words cword split
   _init_completion -s || return
@@ -62,7 +62,7 @@ _dunecontrol_complete ()
 
   # if we already have a command, we either pass an options to the 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 ) )
     return 0;
   fi
@@ -80,12 +80,4 @@ _dunecontrol_complete ()
 
   # don't append space to options --foo=...
   [[ $COMPREPLY == *= ]] && compopt -o nospace
-}
-
-
-_dune_complete_init () {
-  # complete -F _duneproject_complete duneproject
-  complete -F _dunecontrol_complete dunecontrol
-}
-
-_dune_complete_init
+} && complete -F _dunecontrol_complete dunecontrol
-- 
GitLab