[augeas-devel] [PATCH] Fix /augeas into /augeas/files in bash_completion

raphink at gmail.com raphink at gmail.com
Fri Jul 25 11:21:12 UTC 2008


# HG changeset patch
# User Raphael Pinson <raphink at gmail.com>
# Date 1216984241 -7200
# Node ID a7d566eaab75da9bb533f9c0bc0bd00c4a89caee
# Parent  5446e28cdb27049f4da572372605cdb670fbb41d
Fix /augeas into /augeas/files in bash_completion

diff -r 5446e28cdb27 -r a7d566eaab75 augeas.bash_completion
--- a/augeas.bash_completion	Fri Jul 25 11:42:31 2008 +0200
+++ b/augeas.bash_completion	Fri Jul 25 13:10:41 2008 +0200
@@ -33,7 +33,7 @@ _augtool ()
 
 	         case $cur in 
 		    /augeas*)
-                       files=$( find ${rootdir}/${cur##/augeas}*  -maxdepth 1 2>/dev/null | sed -e "s@^${rootdir}@/augeas at g" | sed -re "s@/+@/@g" )
+                       files=$( find ${rootdir}/${cur##/augeas/files}*  -maxdepth 1 2>/dev/null | sed -e "s@^${rootdir}@/augeas/files at g" | sed -re "s@/+@/@g" )
 	               COMPREPLY=( $( compgen -W "${files}" -- $cur ) )
 		       ;;
 		    /files*)
@@ -41,7 +41,7 @@ _augtool ()
 	               COMPREPLY=( $( compgen -W "${files}" -- "$cur" ) )
 		       ;;
 		    *)
-		       COMPREPLY=( $( compgen -o nospace -W "/augeas /augeas/ /files /files/" -- $cur ) )
+		       COMPREPLY=( $( compgen -o nospace -W "/augeas/files /augeas/files/ /files /files/" -- $cur ) )
 		       ;;
 		 esac
 		       




More information about the augeas-devel mailing list