From d92e06df5c2612f1a8de7a7c848536297afdf375 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 24 Jul 2005 14:44:08 +0000 Subject: 21517: complete files after build-config if there's a configs subdir, even if one is not in a project tree. --- Completion/Unix/Command/_baz | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_baz') 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 -- cgit 1.4.1