[PATCH] bash completion

Peter Hoffmann ph at peter-hoffmann.com
Thu May 5 07:39:15 BST 2005


Hi,

_bzr_commands did not return a list of commands, instead it returned the
descriptions. If you use the invert match it works.


'-o default' to add normal path completition (useful for add, diff ...)
as fallback.


Peter

*** modified file 'contrib/bash/bzr'
--- contrib/bash/bzr
+++ contrib/bash/bzr
@@ -6,7 +6,7 @@

 _bzr_commands()
 {
-     bzr help commands | grep '^   '
+     bzr help commands | grep -v '^   '
 }

 _bzr()
@@ -24,5 +24,5 @@
     fi
 }

-complete -F _bzr bzr
+complete -F _bzr -o default bzr







More information about the bazaar mailing list