about summary refs log tree commit diff
path: root/Completion/Unix/Command/_baz
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-07-24 14:44:08 +0000
committerClint Adams <clint@users.sourceforge.net>2005-07-24 14:44:08 +0000
commitd92e06df5c2612f1a8de7a7c848536297afdf375 (patch)
treefd0218636cdf2a489eb093ba2c22aac39285fbe1 /Completion/Unix/Command/_baz
parent03531ff379bd888990d4ac1ac9466c345c620706 (diff)
downloadzsh-d92e06df5c2612f1a8de7a7c848536297afdf375.tar.gz
zsh-d92e06df5c2612f1a8de7a7c848536297afdf375.tar.xz
zsh-d92e06df5c2612f1a8de7a7c848536297afdf375.zip
21517: complete files after build-config if there's a configs subdir, even if one is not in a project tree.
Diffstat (limited to 'Completion/Unix/Command/_baz')
-rw-r--r--Completion/Unix/Command/_baz8
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_baz b/Completion/Unix/Command/_baz
index a15596488..75363e4e4 100644
--- a/Completion/Unix/Command/_baz
+++ b/Completion/Unix/Command/_baz
@@ -54,8 +54,12 @@ _baz_config () {
   [[ -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