mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
21517: complete files after build-config if there's a configs subdir, even if one is not in a project tree.
This commit is contained in:
parent
03531ff379
commit
d92e06df5c
@ -1,5 +1,9 @@
|
||||
2005-07-24 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 21517: Completion/Unix/Command/_baz: complete files after
|
||||
build-config if there's a configs subdir, even if one is not in a
|
||||
project tree.
|
||||
|
||||
* 21510: Config/installfns.sh: use && rather than -a binary
|
||||
test operator.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user