Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _baz build-config



Some people have their configs below a directory not in an Arch project
tree, and this attempts to accomodate them.  Checking for the configs/
dir twice is silly though.

Index: Completion/Unix/Command/_baz
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_baz,v
retrieving revision 1.6
diff -u -r1.6 _baz
--- Completion/Unix/Command/_baz	17 Apr 2005 13:40:27 -0000	1.6
+++ Completion/Unix/Command/_baz	24 Jul 2005 14:38:18 -0000
@@ -54,8 +54,12 @@
   [[ -n "$n" ]] && configdir=$opt_args[$n]
   root="$(_call_program baz $BAZ tree-root ${configdir} 2>&1)"
   if (( $? )); then
-    _message -e messages "Error: $root"
-    return $ret
+    if [[ -d "configs" ]]; then
+      root=.
+    else
+      _message -e messages "Error: $root"
+      return $ret
+    fi
   fi
 
   if [[ -d "$root/configs" ]]; then



Messages sorted by: Reverse Date, Date, Thread, Author